diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-02-14 15:55:15 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-02-14 15:55:15 +0000 |
commit | 50ac55334341c16dd3a6b94908dfd498c5e50930 (patch) | |
tree | b5a92cb92386204e42ed6b1933c5031576317bb7 | |
parent | f428119e12f377e469da91eb52232e7a290f9f08 (diff) | |
download | illumos-packaging-50ac55334341c16dd3a6b94908dfd498c5e50930.tar.gz |
Begin to package procfs utils, ps
-rw-r--r-- | procutils/debian/README.source | 10 | ||||
-rw-r--r-- | procutils/debian/changelog | 5 | ||||
-rw-r--r-- | procutils/debian/compat | 1 | ||||
-rw-r--r-- | procutils/debian/control | 21 | ||||
-rw-r--r-- | procutils/debian/copyright | 27 | ||||
-rw-r--r-- | procutils/debian/patches/ps-libw.h-not-used.patch | 12 | ||||
-rw-r--r-- | procutils/debian/patches/ps-no-isaexec.patch | 12 | ||||
-rw-r--r-- | procutils/debian/patches/series | 2 | ||||
-rw-r--r-- | procutils/debian/procfsutils.install | 1 | ||||
-rw-r--r-- | procutils/debian/procfsutils.manpages | 1 | ||||
-rwxr-xr-x | procutils/debian/rules | 76 | ||||
-rw-r--r-- | procutils/debian/source/format | 1 |
12 files changed, 169 insertions, 0 deletions
diff --git a/procutils/debian/README.source b/procutils/debian/README.source new file mode 100644 index 0000000..9988910 --- /dev/null +++ b/procutils/debian/README.source @@ -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 + diff --git a/procutils/debian/changelog b/procutils/debian/changelog new file mode 100644 index 0000000..6553c7d --- /dev/null +++ b/procutils/debian/changelog @@ -0,0 +1,5 @@ +procfsutils (2.10-1) unstable; urgency=low + + * Initial release. + + -- Igor Pashev <pashev.igor@gmail.com> Thu, 14 Feb 2013 15:54:31 +0000 diff --git a/procutils/debian/compat b/procutils/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/procutils/debian/compat @@ -0,0 +1 @@ +9 diff --git a/procutils/debian/control b/procutils/debian/control new file mode 100644 index 0000000..3620e05 --- /dev/null +++ b/procutils/debian/control @@ -0,0 +1,21 @@ +Source: procfsutils +Section: admin +Priority: standard +Maintainer: Igor Pashev <pashev.igor@gmail.com> +Build-Depends: + dh-illumos, + illumos-source-2.10, + libproject-dev, + quilt, +Standards-Version: 3.9.3 +Homepage: https://www.illumos.org + +Package: procfsutils +Priority: important +Architecture: illumos-any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: /proc file system utilities + This package provides command line and full screen utilities for browsing + procfs, a "pseudo" file system dynamically generated by the kernel to + provide information about the status of entries in its process table. + diff --git a/procutils/debian/copyright b/procutils/debian/copyright new file mode 100644 index 0000000..92d3a40 --- /dev/null +++ b/procutils/debian/copyright @@ -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'. + diff --git a/procutils/debian/patches/ps-libw.h-not-used.patch b/procutils/debian/patches/ps-libw.h-not-used.patch new file mode 100644 index 0000000..b5510ac --- /dev/null +++ b/procutils/debian/patches/ps-libw.h-not-used.patch @@ -0,0 +1,12 @@ +Index: procutils/usr/src/cmd/ps/ps.c +=================================================================== +--- procutils.orig/usr/src/cmd/ps/ps.c 2012-10-08 00:25:33.000000000 +0000 ++++ procutils/usr/src/cmd/ps/ps.c 2013-02-14 15:49:02.777068639 +0000 +@@ -56,7 +56,6 @@ + #include <locale.h> + #include <wctype.h> + #include <wchar.h> +-#include <libw.h> + #include <stdarg.h> + #include <sys/proc.h> + #include <sys/pset.h> diff --git a/procutils/debian/patches/ps-no-isaexec.patch b/procutils/debian/patches/ps-no-isaexec.patch new file mode 100644 index 0000000..7536538 --- /dev/null +++ b/procutils/debian/patches/ps-no-isaexec.patch @@ -0,0 +1,12 @@ +Index: procutils/usr/src/cmd/ps/i386/Makefile +=================================================================== +--- procutils.orig/usr/src/cmd/ps/i386/Makefile 2012-10-08 00:25:33.000000000 +0000 ++++ procutils/usr/src/cmd/ps/i386/Makefile 2013-02-14 15:50:28.466374331 +0000 +@@ -34,6 +34,6 @@ + + all: $(PROG) + +-install: all $(ROOTPROG32) ++install: all $(ROOTPROG) + + include ../../Makefile.targ diff --git a/procutils/debian/patches/series b/procutils/debian/patches/series new file mode 100644 index 0000000..2e637f7 --- /dev/null +++ b/procutils/debian/patches/series @@ -0,0 +1,2 @@ +ps-libw.h-not-used.patch +ps-no-isaexec.patch diff --git a/procutils/debian/procfsutils.install b/procutils/debian/procfsutils.install new file mode 100644 index 0000000..9ca1156 --- /dev/null +++ b/procutils/debian/procfsutils.install @@ -0,0 +1 @@ +usr/bin/ps diff --git a/procutils/debian/procfsutils.manpages b/procutils/debian/procfsutils.manpages new file mode 100644 index 0000000..91cc55a --- /dev/null +++ b/procutils/debian/procfsutils.manpages @@ -0,0 +1 @@ +usr/src/man/man1/ps.1 diff --git a/procutils/debian/rules b/procutils/debian/rules new file mode 100755 index 0000000..a3fa6ee --- /dev/null +++ b/procutils/debian/rules @@ -0,0 +1,76 @@ +#!/usr/bin/make -f + +export DH_VERBOSE = 1 + +cmd := \ + ps/i386 + +unpack: unpack-stamp +unpack-stamp: + dh_testdir + dh_illumos_gate --build \ + usr/src/man/man1\* \ + usr/src/cmd \ + + # Buggy and unused: + echo > usr/src/Makefile.msg.targ + + # Use GNU ld: + sed -i '/LD_ALTEXEC/d' usr/env.sh + echo 'BDIRECT=' >> usr/src/cmd/Makefile.cmd + echo 'MAPFILE.NES=' >> usr/src/cmd/Makefile.cmd + echo 'MAPFILE.PGA=' >> usr/src/cmd/Makefile.cmd + echo 'MAPFILE.NED=' >> usr/src/cmd/Makefile.cmd + + 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 + dh_illumos_make --native $(cmd:%=usr/src/cmd/%) + 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 .pc + diff --git a/procutils/debian/source/format b/procutils/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/procutils/debian/source/format @@ -0,0 +1 @@ +3.0 (native) |