straddr.so, see /etc/netconfig

This commit is contained in:
Igor Pashev 2013-09-28 18:00:16 +04:00
parent 20790656ef
commit 3c6733b47d
10 changed files with 175 additions and 0 deletions

View File

@ -0,0 +1,10 @@
Real sources are in the package illumos-source-X.Y,
where X and Y are numbers. Exact values of X and Y
are set in Build-Depends field of debian/control as
well as in the version string in debian/changelog,
in a form of X.Y-1.
To add a patch you need first to unpack files from
illumos-source-X.Y using ./debian/rules unpack
and, desirably, ./debian/rules patch

View File

@ -0,0 +1,5 @@
nametoaddr (2.10+1) unstable; urgency=low
* Initial release.
-- Igor Pashev <pashev.igor@gmail.com> Sat, 28 Sep 2013 17:58:07 +0400

1
nametoaddr/debian/compat Normal file
View File

@ -0,0 +1 @@
9

28
nametoaddr/debian/control Normal file
View File

@ -0,0 +1,28 @@
Source: nametoaddr
Section: net
Priority: optional
Maintainer: Igor Pashev <pashev.igor@gmail.com>
Build-Depends:
illumos-source-2.10,
dh-illumos,
quilt,
symlinks,
Standards-Version: 3.9.3
Homepage: https://www.illumos.org
Package: libstraddr
Section: libs
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Architecture: illumos-any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: name-to-address mapping routines.
This package contains the straddr.so shared library.
This library provides the name-to-address mapping routines for any protocol
that accepts strings as addresses. The loopback driver is an example.
.
This is illumos specific. There were other silimar libraries in ancient time,
e. g. tcpip.so or resolv.so
.
This library is used by illumos rpcbind, see /etc/netconfig.

View File

@ -0,0 +1,26 @@
Files: debian/*
Copyright: 2013, Igor Pashev <pashev.igor@gmail.com>
License: WTFPL-2
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
.
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
.
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
.
0. You just DO WHAT THE FUCK YOU WANT TO.
Files: *
License: CDDL
Note that sources are not in this package but in the package
illumos-source-X.Y. Those sources are covered by Common Development
and Distribution License (CDDL).
.
On Dyson system, the full text of the CDDL license
can be found in the file `/usr/share/common-licenses/CDDL-1.0'.

View File

@ -0,0 +1 @@
usr/lib/*/straddr.so

View File

@ -0,0 +1 @@
straddr-no-multilib.patch

View File

@ -0,0 +1,17 @@
Index: nametoaddr/usr/src/lib/nametoaddr/straddr/Makefile
===================================================================
--- nametoaddr.orig/usr/src/lib/nametoaddr/straddr/Makefile 2012-10-08 04:25:43.000000000 +0400
+++ nametoaddr/usr/src/lib/nametoaddr/straddr/Makefile 2013-09-28 17:53:22.914771324 +0400
@@ -27,8 +27,11 @@
include ../../Makefile.lib
+ifeq ($(DEB_HOST_ARCH_BITS),32)
SUBDIRS= $(MACH)
-$(BUILD64)SUBDIRS += $(MACH64)
+else
+SUBDIRS= $(MACH64)
+endif
all := TARGET= all
clean := TARGET= clean

85
nametoaddr/debian/rules Executable file
View File

@ -0,0 +1,85 @@
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
export DH_VERBOSE = 1
# libs having "install_h" target to install headers:
libs_headers := \
nametoaddr
# All libraries to build and to package.
# Order is important:
libs := $(libs_headers) \
unpack: unpack-stamp
unpack-stamp:
dh_testdir
dh_illumos_gate --build \
$(libs:%=usr/src/lib/%) \
# libmapid is 32-bit only in illumos, we build it with --native
echo 'export ROOTFS_LIBDIR=$$ROOT/usr/lib/$(DEB_HOST_MULTIARCH)' >> usr/env.sh
echo 'export ROOTLIBDIR=$$ROOT/usr/lib/$(DEB_HOST_MULTIARCH)' >> usr/env.sh
# Not used and buggy:
echo > usr/src/Makefile.msg.targ
touch $@
patch: patch-stamp
patch-stamp: unpack-stamp
dh_testdir
[ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
touch $@
unpatch:
dh_testdir
[ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt pop -a -f || test $$? = 2
rm -f patch-stamp
dirs-stamp:
. usr/env.sh; mkdir -p \
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
touch $@
install install install-arch install-indep: install-stamp
install-stamp: build-stamp
touch $@
build build-arch build-indep: build-stamp
build-stamp: patch-stamp dirs-stamp
dh_illumos_make $(libs:%=usr/src/lib/%)
mv -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/straddr.so.* \
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/straddr.so \
touch $@
binary binary-arch binary-indep: binary-stamp
binary-stamp: install-stamp
dh_testdir
dh_testroot
dh_installdirs
dh_install --fail-missing
dh_installman
dh_installdocs
dh_installexamples
dh_installchangelogs
dh_link
dh_compress
dh_fixperms
dh_makeshlibs -- -c4
dh_installdeb
dh_shlibdeps
dh_strip
dh_gencontrol
dh_md5sums
dh_builddeb
touch $@
clean: unpatch
dh_testdir
dh_testroot
dh_clean
rm -rf usr .pc

View File

@ -0,0 +1 @@
3.0 (native)