summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-01-10 05:47:08 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-01-10 05:47:08 +0400
commit70a7ec714323e568e1ccd8db3ab47956aa4d34bc (patch)
treeb1ca9fd8e03de8b3349f887d9aa543d1815708f2
parent73428d314199a74519e37140536739a8b62e797f (diff)
downloadillumos-packaging-70a7ec714323e568e1ccd8db3ab47956aa4d34bc.tar.gz
cfgadm
-rw-r--r--cfgadm/debian/README.source10
-rw-r--r--cfgadm/debian/cfgadm.install1
-rw-r--r--cfgadm/debian/cfgadm.manpages1
-rw-r--r--cfgadm/debian/changelog5
-rw-r--r--cfgadm/debian/compat1
-rw-r--r--cfgadm/debian/control68
-rw-r--r--cfgadm/debian/copyright27
-rw-r--r--cfgadm/debian/lib32cfgadm1-dev.install1
-rw-r--r--cfgadm/debian/lib32cfgadm1.install1
-rw-r--r--cfgadm/debian/libcfgadm1-dev.install2
-rw-r--r--cfgadm/debian/libcfgadm1.install1
-rw-r--r--cfgadm/debian/libcfgadm1.symbols14
-rw-r--r--cfgadm/debian/patches/cfgadm-make.patch59
-rw-r--r--cfgadm/debian/patches/series1
-rwxr-xr-xcfgadm/debian/rules77
-rw-r--r--cfgadm/debian/source/format1
16 files changed, 270 insertions, 0 deletions
diff --git a/cfgadm/debian/README.source b/cfgadm/debian/README.source
new file mode 100644
index 0000000..9988910
--- /dev/null
+++ b/cfgadm/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/cfgadm/debian/cfgadm.install b/cfgadm/debian/cfgadm.install
new file mode 100644
index 0000000..5fa4416
--- /dev/null
+++ b/cfgadm/debian/cfgadm.install
@@ -0,0 +1 @@
+usr/sbin/cfgadm
diff --git a/cfgadm/debian/cfgadm.manpages b/cfgadm/debian/cfgadm.manpages
new file mode 100644
index 0000000..db94d00
--- /dev/null
+++ b/cfgadm/debian/cfgadm.manpages
@@ -0,0 +1 @@
+usr/src/man/man1m/cfgadm.1m
diff --git a/cfgadm/debian/changelog b/cfgadm/debian/changelog
new file mode 100644
index 0000000..e004637
--- /dev/null
+++ b/cfgadm/debian/changelog
@@ -0,0 +1,5 @@
+cfgadm (2.10-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Igor Pashev <pashev.igor@gmail.com> Thu, 10 Jan 2013 04:31:14 +0400
diff --git a/cfgadm/debian/compat b/cfgadm/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/cfgadm/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/cfgadm/debian/control b/cfgadm/debian/control
new file mode 100644
index 0000000..72bd288
--- /dev/null
+++ b/cfgadm/debian/control
@@ -0,0 +1,68 @@
+Source: cfgadm
+Section: admin
+Priority: optional
+Maintainer: Igor Pashev <pashev.igor@gmail.com>
+Build-Depends:
+ dh-illumos,
+ illumos-source-2.10,
+ libdevinfo1-dev , lib32devinfo1-dev [illumos-amd64] ,
+ quilt,
+Standards-Version: 3.9.3
+Homepage: https://www.illumos.org
+
+Package: cfgadm
+Priority: required
+Section: admin
+Architecture: illumos-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: configuration administration
+ The cfgadm command provides configuration administration operations on
+ dynamically reconfigurable hardware resources.
+ .
+ These operations include displaying status, initiating testing,
+ invoking configuration state changes, invoking hardware specific
+ functions. Configuration administration is performed at attachment points,
+ which are places where system software supports dynamic reconfiguration of
+ hardware resources during continued operation of illumos.
+
+Package: libcfgadm1
+Section: libs
+Priority: standard
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Architecture: illumos-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: configuration administration library
+ This package contains libcfgadm shared library.
+
+Package: libcfgadm1-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-any
+Provides: libcfgadm-dev
+Depends: libcfgadm1 (= ${binary:Version}), ${misc:Depends},
+Description: configuration administration library (development files)
+ This package contains the header files and symlinks needed
+ to compile applications that use libcfgadm.
+
+Package: lib32cfgadm1
+Section: libs
+Priority: standard
+Architecture: illumos-amd64
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: configuration administration library (32 bit)
+ This package contains libcfgadm shared library.
+ .
+ This is a 32-bit version of the library.
+
+Package: lib32cfgadm1-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-amd64
+Provides: lib32cfgadm-dev
+Depends: lib32cfgadm1 (= ${binary:Version}), libcfgadm1-dev (= ${binary:Version}),
+ ${misc:Depends}
+Description: configuration administration library (32-bit development files)
+ This package contains files needed to compile
+ 32-bit applications that use libcfgadm.
+
diff --git a/cfgadm/debian/copyright b/cfgadm/debian/copyright
new file mode 100644
index 0000000..92d3a40
--- /dev/null
+++ b/cfgadm/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/cfgadm/debian/lib32cfgadm1-dev.install b/cfgadm/debian/lib32cfgadm1-dev.install
new file mode 100644
index 0000000..017820b
--- /dev/null
+++ b/cfgadm/debian/lib32cfgadm1-dev.install
@@ -0,0 +1 @@
+usr/lib32/libcfgadm.so
diff --git a/cfgadm/debian/lib32cfgadm1.install b/cfgadm/debian/lib32cfgadm1.install
new file mode 100644
index 0000000..22634e5
--- /dev/null
+++ b/cfgadm/debian/lib32cfgadm1.install
@@ -0,0 +1 @@
+usr/lib32/libcfgadm.so.1
diff --git a/cfgadm/debian/libcfgadm1-dev.install b/cfgadm/debian/libcfgadm1-dev.install
new file mode 100644
index 0000000..e90d50b
--- /dev/null
+++ b/cfgadm/debian/libcfgadm1-dev.install
@@ -0,0 +1,2 @@
+usr/include/config_admin.h
+usr/lib/*/libcfgadm.so
diff --git a/cfgadm/debian/libcfgadm1.install b/cfgadm/debian/libcfgadm1.install
new file mode 100644
index 0000000..b85f30d
--- /dev/null
+++ b/cfgadm/debian/libcfgadm1.install
@@ -0,0 +1 @@
+usr/lib/*/libcfgadm.so.1
diff --git a/cfgadm/debian/libcfgadm1.symbols b/cfgadm/debian/libcfgadm1.symbols
new file mode 100644
index 0000000..eeaf795
--- /dev/null
+++ b/cfgadm/debian/libcfgadm1.symbols
@@ -0,0 +1,14 @@
+libcfgadm.so.1 libcfgadm1 #MINVER#
+ SUNW_1.1@SUNW_1.1 2.10-1
+ SUNW_1.2@SUNW_1.2 2.10-1
+ SUNWprivate_1.1@SUNWprivate_1.1 2.10-1
+ config_ap_id_cmp@SUNW_1.1 2.10-1
+ config_change_state@SUNW_1.1 2.10-1
+ config_help@SUNW_1.1 2.10-1
+ config_list@SUNW_1.1 2.10-1
+ config_list_ext@SUNW_1.2 2.10-1
+ config_private_func@SUNW_1.1 2.10-1
+ config_stat@SUNW_1.1 2.10-1
+ config_strerror@SUNW_1.1 2.10-1
+ config_test@SUNW_1.1 2.10-1
+ config_unload_libs@SUNW_1.1 2.10-1
diff --git a/cfgadm/debian/patches/cfgadm-make.patch b/cfgadm/debian/patches/cfgadm-make.patch
new file mode 100644
index 0000000..d9e57ef
--- /dev/null
+++ b/cfgadm/debian/patches/cfgadm-make.patch
@@ -0,0 +1,59 @@
+Description: replace makefile
+ Original makefile does not work with GNU make
+ with VERY strange results.
+Index: cfgadm/usr/src/cmd/cfgadm/Makefile
+===================================================================
+--- cfgadm.orig/usr/src/cmd/cfgadm/Makefile 2012-10-08 04:25:23.000000000 +0400
++++ cfgadm/usr/src/cmd/cfgadm/Makefile 2013-01-10 05:22:54.027396908 +0400
+@@ -27,35 +27,34 @@
+ #
+ # cmd/cfgadm/Makefile
+
+-PROG= cfgadm
++PROG= cfgadm
++OBJS= cfgadm.o
++SRCS= $(OBJS:%.o=%.c)
++POFILE= cfgadm.po
+
+ include ../Makefile.cmd
+
+-SED= sed
+-DCFILE= $(PROG).dc
++LDLIBS += -lcfgadm
+
+-XGETFLAGS += -a -x cfgadm.xcl
+-
+-LDLIBS += -lcfgadm
+-LINTFLAGS += $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) $(LDLIBS)
+
+ .KEEP_STATE:
+
+-all: $(PROG)
++.PARALLEL:
++
++all: $(PROG)
++
++$(PROG): $(OBJS)
++ $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
++ $(POST_PROCESS)
+
+ install: all $(ROOTUSRSBINPROG)
+- -$(RM) $(ROOTETCPROG)
+- $(SYMLINK) ../usr/sbin/$(PROG) $(ROOTETCPROG)
+
+ clean:
++ $(RM) $(OBJS)
++
++lint: lint_SRCS
+
+-lint: lint_PROG
+
+-$(DCFILE): $(PROG).c
+- $(RM) $(DCFILE)
+- $(COMPILE.cpp) $(PROG).c | \
+- $(XGETTEXT) -t -
+- $(SED) -e '/^domain/d' messages.po > $@
+- $(RM) messages.po
++FRC:
+
+ include ../Makefile.targ
diff --git a/cfgadm/debian/patches/series b/cfgadm/debian/patches/series
new file mode 100644
index 0000000..b6cc813
--- /dev/null
+++ b/cfgadm/debian/patches/series
@@ -0,0 +1 @@
+cfgadm-make.patch
diff --git a/cfgadm/debian/rules b/cfgadm/debian/rules
new file mode 100755
index 0000000..7459d88
--- /dev/null
+++ b/cfgadm/debian/rules
@@ -0,0 +1,77 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/architecture.mk
+export DH_VERBOSE = 1
+
+unpack: unpack-stamp
+unpack-stamp:
+ dh_testdir
+ dh_illumos_gate --build \
+ usr/src/head/config_admin.h \
+ usr/src/cmd/cfgadm \
+ usr/src/lib/libcfgadm \
+ usr/src/man/man1m/cfgadm.1m \
+
+ # Buggy and unused:
+ 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: unpack-stamp
+ . usr/env.sh; mkdir -p \
+ debian/tmp/usr/include \
+ debian/tmp$$DEB_USRLIBDIR_32 \
+ debian/tmp$$DEB_USRLIBDIR_64 \
+ debian/tmp/usr/sbin
+ touch $@
+
+install build build-arch build-indep: build-stamp
+
+headers-stamp: dirs-stamp
+ cp usr/src/head/config_admin.h \
+ debian/tmp/usr/include/
+ touch $@
+
+build-stamp: dirs-stamp patch-stamp headers-stamp
+ dh_illumos_make usr/src/lib/libcfgadm
+ dh_illumos_make --native usr/src/cmd/cfgadm
+ 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_makeshlibs -- -c4
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+ touch $@
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ dh_clean
+ rm -rf usr
+
diff --git a/cfgadm/debian/source/format b/cfgadm/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/cfgadm/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)