diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-01-18 23:30:14 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-01-18 23:30:14 +0000 |
commit | 5afbada270a15bfd65caf1488eecabbf10e7f9b2 (patch) | |
tree | 6e870a5e7d9ac29236b62a70a448ab0b8ef779af | |
parent | b53dc4a83d2701c6289c5504555b11b6fb53183f (diff) | |
download | illumos-packaging-5afbada270a15bfd65caf1488eecabbf10e7f9b2.tar.gz |
New package: manifest-import
-rw-r--r-- | manifest-import/debian/README.source | 10 | ||||
-rw-r--r-- | manifest-import/debian/changelog | 5 | ||||
-rw-r--r-- | manifest-import/debian/compat | 1 | ||||
-rw-r--r-- | manifest-import/debian/control | 34 | ||||
-rw-r--r-- | manifest-import/debian/copyright | 27 | ||||
-rw-r--r-- | manifest-import/debian/manifest-import.install | 4 | ||||
-rw-r--r-- | manifest-import/debian/patches/mfstscan-libs.patch | 13 | ||||
-rw-r--r-- | manifest-import/debian/patches/series | 1 | ||||
-rwxr-xr-x | manifest-import/debian/rules | 81 | ||||
-rw-r--r-- | manifest-import/debian/source/format | 1 |
10 files changed, 177 insertions, 0 deletions
diff --git a/manifest-import/debian/README.source b/manifest-import/debian/README.source new file mode 100644 index 0000000..9988910 --- /dev/null +++ b/manifest-import/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/manifest-import/debian/changelog b/manifest-import/debian/changelog new file mode 100644 index 0000000..62d455b --- /dev/null +++ b/manifest-import/debian/changelog @@ -0,0 +1,5 @@ +manifest-import (2.10-1) unstable; urgency=low + + * Initial release. + + -- Igor Pashev <pashev.igor@gmail.com> Fri, 18 Jan 2013 23:28:58 +0000 diff --git a/manifest-import/debian/compat b/manifest-import/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/manifest-import/debian/compat @@ -0,0 +1 @@ +9 diff --git a/manifest-import/debian/control b/manifest-import/debian/control new file mode 100644 index 0000000..96e494a --- /dev/null +++ b/manifest-import/debian/control @@ -0,0 +1,34 @@ +Source: manifest-import +Section: admin +Priority: required +Maintainer: Igor Pashev <pashev.igor@gmail.com> +Build-Depends: + dh-illumos, + illumos-source-2.10, + libscf-dev, + libuutil-dev, + quilt, +Standards-Version: 3.9.3 +Homepage: https://www.illumos.org + +Package: manifest-import +Priority: required +Essential: yes +Section: admin +Architecture: illumos-any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: SMF manifest importing service + This package provides scripts, utilities and SMF services + for importing other SMF services. Manifest importing happens + in these cases: + - early manifest import by svc.startd + - normal manifest import by svc:/system/manifest-import:default + - dpkg triggers + . + Service Management Facility (SMF) is a framework that handles system boot-up, + process management, and self-healing. It addresses the shortcomings of + startup scripts and creates an infrastructure to manage daemons after the + host has booted. + + + diff --git a/manifest-import/debian/copyright b/manifest-import/debian/copyright new file mode 100644 index 0000000..92d3a40 --- /dev/null +++ b/manifest-import/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/manifest-import/debian/manifest-import.install b/manifest-import/debian/manifest-import.install new file mode 100644 index 0000000..bf8bd88 --- /dev/null +++ b/manifest-import/debian/manifest-import.install @@ -0,0 +1,4 @@ +lib/svc/bin/mfstscan +usr/src/cmd/svc/milestone/manifest-import /lib/svc/method/ +usr/src/cmd/svc/milestone/early-manifest-import.xml /lib/svc/manifest/system/ +usr/src/cmd/svc/milestone/manifest-import.xml /lib/svc/manifest/system/ diff --git a/manifest-import/debian/patches/mfstscan-libs.patch b/manifest-import/debian/patches/mfstscan-libs.patch new file mode 100644 index 0000000..121154b --- /dev/null +++ b/manifest-import/debian/patches/mfstscan-libs.patch @@ -0,0 +1,13 @@ +Index: svc.startd/usr/src/cmd/svc/mfstscan/Makefile +=================================================================== +--- svc.startd.orig/usr/src/cmd/svc/mfstscan/Makefile 2012-10-08 00:25:33.000000000 +0000 ++++ svc.startd/usr/src/cmd/svc/mfstscan/Makefile 2013-01-18 22:06:59.985561387 +0000 +@@ -41,7 +41,7 @@ + + POFILE = $(PROG)_all.po + CPPFLAGS += -I../common +-LDLIBS += -lscf -luutil -lmd5 ++LDLIBS += -lscf -luutil -lmd + CLOBBERFILES += $(POFILES) + + CERRWARN += -_gcc=-Wno-uninitialized diff --git a/manifest-import/debian/patches/series b/manifest-import/debian/patches/series new file mode 100644 index 0000000..741400f --- /dev/null +++ b/manifest-import/debian/patches/series @@ -0,0 +1 @@ +mfstscan-libs.patch diff --git a/manifest-import/debian/rules b/manifest-import/debian/rules new file mode 100755 index 0000000..60256b8 --- /dev/null +++ b/manifest-import/debian/rules @@ -0,0 +1,81 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/buildflags.mk + +export DH_VERBOSE = 1 + +unpack: unpack-stamp +unpack-stamp: + dh_testdir + dh_illumos_gate --build \ + usr/src/cmd/svc/mfstscan \ + usr/src/cmd/svc/common \ + usr/src/cmd/svc/milestone\*manifest-import\* + + # 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/lib/svc/bin + touch $@ + +install: install-stamp + +install-stamp: build-stamp + touch $@ + +build build-arch build-indep: build-stamp + +build-stamp: dirs-stamp patch-stamp + dh_illumos_make --native usr/src/cmd/svc/mfstscan + touch $@ + +binary binary-arch binary-indep: binary-stamp +binary-stamp: install-stamp + dh_testdir + dh_testroot + dh_installdirs + dh_install + dh_strip + 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/manifest-import/debian/source/format b/manifest-import/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/manifest-import/debian/source/format @@ -0,0 +1 @@ +3.0 (native) |