Package drvtools

This commit is contained in:
Igor Pashev 2013-01-04 20:07:14 +04:00
parent 399f75eb8d
commit 370023f46b
11 changed files with 164 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 @@
drvtools (2.10-1) unstable; urgency=low
* Initial release.
-- Igor Pashev <pashev.igor@gmail.com> Fri, 04 Jan 2013 19:25:13 +0400

1
drvtools/debian/compat Normal file
View File

@ -0,0 +1 @@
9

21
drvtools/debian/control Normal file
View File

@ -0,0 +1,21 @@
Source: drvtools
Section: libs
Priority: standard
Maintainer: Igor Pashev <pashev.igor@gmail.com>
Build-Depends:
dh-illumos,
illumos-source-2.10,
quilt,
libdevinfo-dev,
libelfg0-dev,
Standards-Version: 3.9.3
Homepage: https://www.illumos.org
Package: drvtools
Priority: standard
Section: kernel
Architecture: illumos-any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: tools for managing illumos kernel drivers

27
drvtools/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,6 @@
usr/sbin/modload
usr/sbin/add_drv
usr/sbin/update_drv
usr/sbin/rem_drv
usr/sbin/modunload
usr/sbin/modinfo

View File

@ -0,0 +1,6 @@
usr/src/man/man1m/add_drv.1m
usr/src/man/man1m/update_drv.1m
usr/src/man/man1m/rem_drv.1m
usr/src/man/man1m/modunload.1m
usr/src/man/man1m/modload.1m
usr/src/man/man1m/modinfo.1m

View File

@ -0,0 +1,10 @@
Index: drvtools/usr/src/cmd/modload/i386/Makefile
===================================================================
--- drvtools.orig/usr/src/cmd/modload/i386/Makefile 2012-10-08 04:25:29.000000000 +0400
+++ drvtools/usr/src/cmd/modload/i386/Makefile 2013-01-04 19:35:08.561163587 +0400
@@ -28,4 +28,4 @@
include ../Makefile.com
-install: all $(ROOTUSRSBINPROG32)
+install: all $(ROOTUSRSBINPROG)

View File

@ -0,0 +1 @@
modload-no-isaexec.patch

76
drvtools/debian/rules Executable file
View File

@ -0,0 +1,76 @@
#!/usr/bin/make -f
export DH_VERBOSE = 1
unpack: unpack-stamp
unpack-stamp:
dh_testdir
dh_illumos_gate --build \
usr/src/cmd/modload \
usr/src/man/man1m/add_drv.1m \
usr/src/man/man1m/modinfo.1m \
usr/src/man/man1m/modload.1m \
usr/src/man/man1m/modunload.1m \
usr/src/man/man1m/rem_drv.1m \
usr/src/man/man1m/update_drv.1m \
# Buggy and unused:
echo > usr/src/Makefile.msg.targ
# Use GNU ld, see also the bootadm-use-gnu-ld.patch patch
#sed -i '/LD_ALTEXEC/d' usr/env.sh
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: unpack-stamp
. usr/env.sh; mkdir -p \
debian/tmp/usr/bin \
debian/tmp/usr/sbin
touch $@
install build build-arch build-indep: build-stamp
build-stamp: dirs-stamp patch-stamp
# We've patched it, so i386 is suitable for any arch:
dh_illumos_make --native usr/src/cmd/modload/i386
touch $@
binary binary-arch binary-indep: binary-stamp
binary-stamp: build-stamp
dh_testdir
dh_testroot
dh_installdirs
dh_install
dh_installman
dh_installdocs
dh_installexamples
dh_installchangelogs
dh_bash-completion
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
touch $@
clean: unpatch
dh_testdir
dh_testroot
dh_clean
rm -rf usr

View File

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