This commit is contained in:
Igor Pashev 2013-03-16 22:51:40 +00:00
parent 47437c2fea
commit e558569256
12 changed files with 241 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 @@
libtsnet (2.10-1) unstable; urgency=low
* Initial release.
-- Igor Pashev <pashev.igor@gmail.com> Sat, 16 Mar 2013 22:51:21 +0000

1
libtsnet/debian/compat Normal file
View File

@ -0,0 +1 @@
9

67
libtsnet/debian/control Normal file
View File

@ -0,0 +1,67 @@
Source: libtsnet
Section: libs
Priority: optional
Maintainer: Igor Pashev <pashev.igor@gmail.com>
Build-Depends:
dh-illumos,
gcc-multilib,
illumos-source-2.10,
libtsol-dev, lib32tsol-dev [illumos-amd64],
quilt,
symlinks,
Standards-Version: 3.9.3
Homepage: https://www.illumos.org
Package: libtsnet1
Section: libs
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Architecture: illumos-any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: trusted extensions network library
This package contains libtsnet shared library.
.
Functions in this library provide programmatic access to solaris trusted
network extensions.
Package: libtsnet1-dev
Section: libdevel
Priority: optional
Architecture: illumos-any
Provides: libtsnet-dev
Depends: libtsnet1 (= ${binary:Version}), ${misc:Depends}, libc1-dev
Description: trusted extensions network library (development files)
This package contains the header files and symlinks needed
to compile applications that use libtsnet.
.
Functions in this library provide programmatic access to solaris trusted
network extensions.
Package: lib32tsnet1
Section: libs
Priority: standard
Architecture: illumos-amd64
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: trusted extensions network library (32 bit)
This package contains libtsnet shared library.
.
Functions in this library provide programmatic access to solaris trusted
network extensions.
.
This is a 32-bit version of the library.
Package: lib32tsnet1-dev
Section: libdevel
Priority: optional
Architecture: illumos-amd64
Provides: lib32tsnet-dev
Depends: lib32tsnet1 (= ${binary:Version}), libtsnet1-dev (= ${binary:Version}),
${misc:Depends}
Description: trusted extensions network library (32-bit development files)
This package contains files needed to compile
32-bit applications that use libtsnet.
.
Functions in this library provide programmatic access to solaris trusted
network extensions.

27
libtsnet/debian/copyright Normal file
View File

@ -0,0 +1,27 @@
Files: debian/*
Copyright: 2012, 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/lib32/libtsnet.so

View File

@ -0,0 +1 @@
lib32/libtsnet.so.1

View File

@ -0,0 +1,2 @@
usr/lib/*/libtsnet.so
usr/include/*

View File

@ -0,0 +1 @@
lib/*/libtsnet.so.1

View File

@ -0,0 +1,28 @@
libtsnet.so.1 libtsnet1 #MINVER#
SUNWprivate_1.1@SUNWprivate_1.1 2.10-2
rhstr_to_ent@SUNWprivate_1.1 2.10-2
rtsa_keyword@SUNWprivate_1.1 2.10-2
rtsa_to_str@SUNWprivate_1.1 2.10-2
sl_to_str@SUNWprivate_1.1 2.10-2
str_to_rhstr@SUNWprivate_1.1 2.10-2
str_to_tpstr@SUNWprivate_1.1 2.10-2
tnmlp@SUNWprivate_1.1 2.10-2
tnrh@SUNWprivate_1.1 2.10-2
tnrhtp@SUNWprivate_1.1 2.10-2
tpstr_to_ent@SUNWprivate_1.1 2.10-2
tsol_endrhent@SUNWprivate_1.1 2.10-2
tsol_endtpent@SUNWprivate_1.1 2.10-2
tsol_fgetrhent@SUNWprivate_1.1 2.10-2
tsol_fgettpent@SUNWprivate_1.1 2.10-2
tsol_freerhent@SUNWprivate_1.1 2.10-2
tsol_freetpent@SUNWprivate_1.1 2.10-2
tsol_freezcent@SUNWprivate_1.1 2.10-2
tsol_getrhbyaddr@SUNWprivate_1.1 2.10-2
tsol_getrhent@SUNWprivate_1.1 2.10-2
tsol_getrhtype@SUNWprivate_1.1 2.10-2
tsol_gettpbyname@SUNWprivate_1.1 2.10-2
tsol_gettpent@SUNWprivate_1.1 2.10-2
tsol_setrhent@SUNWprivate_1.1 2.10-2
tsol_settpent@SUNWprivate_1.1 2.10-2
tsol_sgetzcent@SUNWprivate_1.1 2.10-2
tsol_strerror@SUNWprivate_1.1 2.10-2

97
libtsnet/debian/rules Executable file
View File

@ -0,0 +1,97 @@
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
export DH_VERBOSE = 1
# libs having "install_h" target to install headers:
libs_headers := \
libtsnet \
# 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/%)
# 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/include \
debian/tmp$$DEB_LIBDIR_32 \
debian/tmp$$DEB_LIBDIR_64 \
debian/tmp$$DEB_USRLIBDIR_32 \
debian/tmp$$DEB_USRLIBDIR_64
touch $@
headers-stamp: patch-stamp dirs-stamp
dh_illumos_make $(libs_headers:%=usr/src/lib/%) -t install_h
touch $@
install install install-arch install-indep: install-stamp
install-stamp: build-stamp
# Move dev symlink from /lib into /usr/lib:
for l in `find debian/tmp/lib32 -maxdepth 1 -type l -name \*.so`; do \
ln -sf `readlink -f $$l` debian/tmp/usr/lib32/`basename $$l`; \
rm $$l; \
done
for l in `find debian/tmp/lib/$(DEB_HOST_MULTIARCH) -maxdepth 1 -type l -name \*.so`; do \
ln -sf `readlink -f $$l` debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/`basename $$l`; \
rm $$l; \
done
# Make symlinks relative:
symlinks -c debian/tmp/usr/lib32
symlinks -c debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
touch $@
build build-arch build-indep: build-stamp
build-stamp: patch-stamp dirs-stamp headers-stamp
dh_illumos_make $(libs:%=usr/src/lib/%)
touch $@
binary binary-arch binary-indep: binary-stamp
binary-stamp: install-stamp
dh_testdir
dh_testroot
dh_installdirs
dh_install
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)