summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-05-15 14:54:38 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-05-15 14:54:38 +0400
commit18a839cf9e3f1cc2eaa89118adb369bfc0213936 (patch)
tree1a797a1e3854ff88ef951c9180d2205f08e737fe
parent52f0af66b0b42d0bf03bd350c40272fd389cffb1 (diff)
downloadstmf-18a839cf9e3f1cc2eaa89118adb369bfc0213936.tar.gz
stmf (1.0-0+dyson4) unstabledyson/1.0-0+dyson4
-rw-r--r--debian/changelog24
-rw-r--r--debian/compat1
-rw-r--r--debian/control117
-rw-r--r--debian/copyright48
-rw-r--r--debian/lib32stmf-dev.install2
-rw-r--r--debian/lib32stmf1.install1
-rw-r--r--debian/lib32stmf1.symbols63
-rw-r--r--debian/libstmf-dev.install3
-rw-r--r--debian/libstmf-doc.manpages1
-rw-r--r--debian/libstmf1.install1
-rw-r--r--debian/libstmf1.symbols63
-rw-r--r--debian/patches/series1
-rw-r--r--debian/patches/stmfadm-man.patch38
-rwxr-xr-xdebian/rules53
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/local-options1
-rw-r--r--debian/stmfadm.install1
-rw-r--r--debian/stmfadm.manpages1
-rw-r--r--debian/stmfsvc.install2
19 files changed, 422 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..cf8cc6a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,24 @@
+stmf (1.0-0+dyson4) unstable; urgency=low
+
+ * Renamed stmfd to stmfsvc
+
+ -- Igor Pashev <pashev.igor@gmail.com> Wed, 15 May 2013 14:48:02 +0400
+
+stmf (1.0-0+dyson3) unstable; urgency=low
+
+ * Fix typo in dependency
+
+ -- Igor Pashev <pashev.igor@gmail.com> Wed, 15 May 2013 13:02:54 +0400
+
+stmf (1.0-0+dyson2) unstable; urgency=low
+
+ * Build stmfadm and stmfd
+ * Update debian/copyright
+
+ -- Igor Pashev <pashev.igor@gmail.com> Wed, 15 May 2013 12:52:34 +0400
+
+libstmf (1.0-0+dyson1) unstable; urgency=low
+
+ * Initial release. For Dyson.
+
+ -- Igor Pashev <pashev.igor@gmail.com> Tue, 14 May 2013 20:07:51 +0400
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..fd6d2f2
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,117 @@
+Source: stmf
+Section: admin
+Priority: optional
+Maintainer: Igor Pashev <pashev.igor@gmail.com>
+Build-Depends:
+ debhelper ( >= 9 ),
+ dpkg-dev ( >= 1.16.1~ ),
+ libnvpair-dev, lib32nvpair-dev [illumos-amd64 kopensolaris-amd64],
+ libscf-dev, lib32scf-dev [illumos-amd64 kopensolaris-amd64],
+ gcc-multilib [illumos-amd64 kopensolaris-amd64],
+Standards-Version: 3.9.4
+Homepage: http://illumos.org/
+
+Package: libstmf1
+Section: libs
+Priority: optional
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Architecture: illumos-any kopensolaris-any
+Recommends: stmfsvc
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: SCSI Target Mode Framework library
+ This package includes shared libstmf library.
+ .
+ Functions in this library provide configuration management of the SCSI
+ Target Mode Framework (STMF), allowing clients to manage the provisioning
+ of logical units and targets to the initiator clients of the framework.
+
+Package: lib32stmf1
+Section: libs
+Priority: optional
+Architecture: illumos-amd64 kopensolaris-amd64
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: SCSI Target Mode Framework library (32 bit)
+ Functions in this library provide configuration management of the SCSI
+ Target Mode Framework (STMF), allowing clients to manage the provisioning
+ of logical units and targets to the initiator clients of the framework.
+ .
+ This is 32-bit version of the library
+
+Package: libstmf-dev
+Architecture: illumos-any kopensolaris-any
+Priority: optional
+Suggests: libstmf-doc
+Section: libdevel
+Depends: ${misc:Depends}, libstmf1 (= ${binary:Version}), libnvpair-dev
+Description: SCSI Target Mode Framework library: development files
+ Contains the symlink, static library and headers needed to compile
+ applications using the libstmf library.
+ .
+ Functions in this library provide configuration management of the SCSI
+ Target Mode Framework (STMF), allowing clients to manage the provisioning
+ of logical units and targets to the initiator clients of the framework.
+
+Package: lib32stmf-dev
+Architecture: illumos-amd64 kopensolaris-amd64
+Priority: optional
+Section: libdevel
+Depends: ${misc:Depends}, lib32stmf1 (= ${binary:Version}),
+ libstmf-dev (= ${binary:Version})
+Description: SCSI Target Mode Framework library: development files (32 bit)
+ Contains files needed to compile 32-bit applications using libstmf library.
+ .
+ Functions in this library provide configuration management of the SCSI
+ Target Mode Framework (STMF), allowing clients to manage the provisioning
+ of logical units and targets to the initiator clients of the framework.
+
+Package: libstmf-doc
+Architecture: all
+Priority: optional
+Section: libdevel
+Description: SCSI Target Mode Framework library: documentation
+ This package contains documentation for the STMF library.
+ To compile applications using this library install the libstmf-dev package.
+ .
+ Functions in this library provide configuration management of the SCSI
+ Target Mode Framework (STMF), allowing clients to manage the provisioning
+ of logical units and targets to the initiator clients of the framework.
+
+Package: stmfadm
+Architecture: illumos-any kopensolaris-any
+Priority: optional
+Section: admin
+Depends: ${shlibs:Depends}, ${misc:Depends}, stmfsvc
+Description: SCSI Target Mode Framework library: CLI utility
+ This package contains the STMF utility which provides a command line
+ interface to the libstmf library.
+ .
+ Functions in the libstmf library provide configuration management of the SCSI
+ Target Mode Framework (STMF), allowing clients to manage the provisioning
+ of logical units and targets to the initiator clients of the framework.
+
+Package: stmfsvc
+Architecture: illumos-any kopensolaris-any
+Priority: optional
+Section: admin
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: SCSI Target Mode Framework library: configuration daemon
+ This package contains the STMF daemon and a SMF service for this daemon. The
+ purpose of this daemon is to restore STMF state after reboot and to make
+ changes made through the libstmf library persistent across reboots.
+ .
+ The provided SMF service is used as a backend storage for STMF configuration
+ and thus required for any client of the libstmf library to work.
+ .
+ Functions in the libstmf library provide configuration management of the SCSI
+ Target Mode Framework (STMF), allowing clients to manage the provisioning
+ of logical units and targets to the initiator clients of the framework.
+
+Package: libstmf1-dbg
+Section: libs
+Priority: extra
+Multi-Arch: same
+Architecture: illumos-any kopensolaris-any
+Depends: ${misc:Depends}, libstmf1 (= ${binary:Version})
+Description: SCSI Target Mode Framework library: detached debugging symbols
+ This package contains the detached debugging symbols for the libstmf library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..18d50a3
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,48 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+
+Files: debian/*
+Copyright: 2013, 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: usr/src/cmd/stmfadm/stmfadm.h
+ usr/src/cmd/stmfsvc/stmf.xml
+ usr/src/common/cmdparse/cmdparse.c
+ usr/src/common/cmdparse/cmdparse.h
+ usr/src/lib/libstmf/common/libstmf_impl.h
+ usr/src/man/*
+Copyright: 2008-2010, Sun Microsystems, Inc.
+License: CDDL
+ .
+ On Debian system, the full text of the CDDL license
+ can be found in the file `/usr/share/common-licenses/CDDL-1.0'.
+
+Files: usr/src/cmd/stmfsvc/stmfsvc.c
+ usr/src/lib/libstmf/common/libstmf.h
+ usr/src/lib/libstmf/common/store.h
+Copyright: 2009-2010, Oracle and/or its affiliates.
+License: CDDL
+
+Files: usr/src/lib/libstmf/common/stmf.c
+ usr/src/lib/libstmf/common/store.c
+Copyright: 2009-2010, Oracle and/or its affiliates.
+ 2012, Milan Jurik.
+License: CDDL
+
+Files: usr/src/cmd/stmfadm/stmfadm.c
+Copyright: 2010, Sun Microsystems, Inc.
+ 2012, Milan Jurik.
+License: CDDL
+
diff --git a/debian/lib32stmf-dev.install b/debian/lib32stmf-dev.install
new file mode 100644
index 0000000..45b8dea
--- /dev/null
+++ b/debian/lib32stmf-dev.install
@@ -0,0 +1,2 @@
+usr/lib32/libstmf.a
+usr/lib32/libstmf.so
diff --git a/debian/lib32stmf1.install b/debian/lib32stmf1.install
new file mode 100644
index 0000000..3817c36
--- /dev/null
+++ b/debian/lib32stmf1.install
@@ -0,0 +1 @@
+usr/lib32/libstmf.so.1*
diff --git a/debian/lib32stmf1.symbols b/debian/lib32stmf1.symbols
new file mode 100644
index 0000000..bef9e99
--- /dev/null
+++ b/debian/lib32stmf1.symbols
@@ -0,0 +1,63 @@
+libstmf.so.1 lib32stmf1 #MINVER#
+ LIBSTMF_1.0@LIBSTMF_1.0 1.0
+ stmfAddToHostGroup@LIBSTMF_1.0 1.0
+ stmfAddToTargetGroup@LIBSTMF_1.0 1.0
+ stmfAddViewEntry@LIBSTMF_1.0 1.0
+ stmfClearProviderData@LIBSTMF_1.0 1.0
+ stmfCreateHostGroup@LIBSTMF_1.0 1.0
+ stmfCreateLu@LIBSTMF_1.0 1.0
+ stmfCreateLuResource@LIBSTMF_1.0 1.0
+ stmfCreateTargetGroup@LIBSTMF_1.0 1.0
+ stmfDeleteHostGroup@LIBSTMF_1.0 1.0
+ stmfDeleteLu@LIBSTMF_1.0 1.0
+ stmfDeleteTargetGroup@LIBSTMF_1.0 1.0
+ stmfDestroyProxyDoor@LIBSTMF_1.0 1.0
+ stmfDevidFromIscsiName@LIBSTMF_1.0 1.0
+ stmfDevidFromWwn@LIBSTMF_1.0 1.0
+ stmfFreeLuResource@LIBSTMF_1.0 1.0
+ stmfFreeMemory@LIBSTMF_1.0 1.0
+ stmfGetAluaState@LIBSTMF_1.0 1.0
+ stmfGetGlobalLuProp@LIBSTMF_1.0 1.0
+ stmfGetHostGroupList@LIBSTMF_1.0 1.0
+ stmfGetHostGroupMembers@LIBSTMF_1.0 1.0
+ stmfGetLogicalUnitList@LIBSTMF_1.0 1.0
+ stmfGetLogicalUnitProperties@LIBSTMF_1.0 1.0
+ stmfGetLuProp@LIBSTMF_1.0 1.0
+ stmfGetLuResource@LIBSTMF_1.0 1.0
+ stmfGetPersistMethod@LIBSTMF_1.0 1.0
+ stmfGetProviderData@LIBSTMF_1.0 1.0
+ stmfGetProviderDataList@LIBSTMF_1.0 1.0
+ stmfGetProviderDataProt@LIBSTMF_1.0 1.0
+ stmfGetSessionList@LIBSTMF_1.0 1.0
+ stmfGetState@LIBSTMF_1.0 1.0
+ stmfGetStmfProp@LIBSTMF_1.0 1.0
+ stmfGetTargetGroupList@LIBSTMF_1.0 1.0
+ stmfGetTargetGroupMembers@LIBSTMF_1.0 1.0
+ stmfGetTargetList@LIBSTMF_1.0 1.0
+ stmfGetTargetProperties@LIBSTMF_1.0 1.0
+ stmfGetViewEntryList@LIBSTMF_1.0 1.0
+ stmfImportLu@LIBSTMF_1.0 1.0
+ stmfInitProxyDoor@LIBSTMF_1.0 1.0
+ stmfLoadConfig@LIBSTMF_1.0 1.0
+ stmfLoadStmfProps@LIBSTMF_1.0 1.0
+ stmfLuStandby@LIBSTMF_1.0 1.0
+ stmfModifyLu@LIBSTMF_1.0 1.0
+ stmfModifyLuByFname@LIBSTMF_1.0 1.0
+ stmfOffline@LIBSTMF_1.0 1.0
+ stmfOfflineLogicalUnit@LIBSTMF_1.0 1.0
+ stmfOfflineTarget@LIBSTMF_1.0 1.0
+ stmfOnline@LIBSTMF_1.0 1.0
+ stmfOnlineLogicalUnit@LIBSTMF_1.0 1.0
+ stmfOnlineTarget@LIBSTMF_1.0 1.0
+ stmfPostProxyMsg@LIBSTMF_1.0 1.0
+ stmfRemoveFromHostGroup@LIBSTMF_1.0 1.0
+ stmfRemoveFromTargetGroup@LIBSTMF_1.0 1.0
+ stmfRemoveViewEntry@LIBSTMF_1.0 1.0
+ stmfSetAluaState@LIBSTMF_1.0 1.0
+ stmfSetGlobalLuProp@LIBSTMF_1.0 1.0
+ stmfSetLuProp@LIBSTMF_1.0 1.0
+ stmfSetPersistMethod@LIBSTMF_1.0 1.0
+ stmfSetProviderData@LIBSTMF_1.0 1.0
+ stmfSetProviderDataProt@LIBSTMF_1.0 1.0
+ stmfSetStmfProp@LIBSTMF_1.0 1.0
+ stmfValidateView@LIBSTMF_1.0 1.0
diff --git a/debian/libstmf-dev.install b/debian/libstmf-dev.install
new file mode 100644
index 0000000..1e53f34
--- /dev/null
+++ b/debian/libstmf-dev.install
@@ -0,0 +1,3 @@
+usr/include/libstmf*
+usr/lib/*/libstmf.a
+usr/lib/*/libstmf.so
diff --git a/debian/libstmf-doc.manpages b/debian/libstmf-doc.manpages
new file mode 100644
index 0000000..03db8c3
--- /dev/null
+++ b/debian/libstmf-doc.manpages
@@ -0,0 +1 @@
+usr/src/man/man3*/*.*
diff --git a/debian/libstmf1.install b/debian/libstmf1.install
new file mode 100644
index 0000000..52d28d3
--- /dev/null
+++ b/debian/libstmf1.install
@@ -0,0 +1 @@
+usr/lib/*/libstmf.so.1*
diff --git a/debian/libstmf1.symbols b/debian/libstmf1.symbols
new file mode 100644
index 0000000..118fe1b
--- /dev/null
+++ b/debian/libstmf1.symbols
@@ -0,0 +1,63 @@
+libstmf.so.1 libstmf1 #MINVER#
+ LIBSTMF_1.0@LIBSTMF_1.0 1.0
+ stmfAddToHostGroup@LIBSTMF_1.0 1.0
+ stmfAddToTargetGroup@LIBSTMF_1.0 1.0
+ stmfAddViewEntry@LIBSTMF_1.0 1.0
+ stmfClearProviderData@LIBSTMF_1.0 1.0
+ stmfCreateHostGroup@LIBSTMF_1.0 1.0
+ stmfCreateLu@LIBSTMF_1.0 1.0
+ stmfCreateLuResource@LIBSTMF_1.0 1.0
+ stmfCreateTargetGroup@LIBSTMF_1.0 1.0
+ stmfDeleteHostGroup@LIBSTMF_1.0 1.0
+ stmfDeleteLu@LIBSTMF_1.0 1.0
+ stmfDeleteTargetGroup@LIBSTMF_1.0 1.0
+ stmfDestroyProxyDoor@LIBSTMF_1.0 1.0
+ stmfDevidFromIscsiName@LIBSTMF_1.0 1.0
+ stmfDevidFromWwn@LIBSTMF_1.0 1.0
+ stmfFreeLuResource@LIBSTMF_1.0 1.0
+ stmfFreeMemory@LIBSTMF_1.0 1.0
+ stmfGetAluaState@LIBSTMF_1.0 1.0
+ stmfGetGlobalLuProp@LIBSTMF_1.0 1.0
+ stmfGetHostGroupList@LIBSTMF_1.0 1.0
+ stmfGetHostGroupMembers@LIBSTMF_1.0 1.0
+ stmfGetLogicalUnitList@LIBSTMF_1.0 1.0
+ stmfGetLogicalUnitProperties@LIBSTMF_1.0 1.0
+ stmfGetLuProp@LIBSTMF_1.0 1.0
+ stmfGetLuResource@LIBSTMF_1.0 1.0
+ stmfGetPersistMethod@LIBSTMF_1.0 1.0
+ stmfGetProviderData@LIBSTMF_1.0 1.0
+ stmfGetProviderDataList@LIBSTMF_1.0 1.0
+ stmfGetProviderDataProt@LIBSTMF_1.0 1.0
+ stmfGetSessionList@LIBSTMF_1.0 1.0
+ stmfGetState@LIBSTMF_1.0 1.0
+ stmfGetStmfProp@LIBSTMF_1.0 1.0
+ stmfGetTargetGroupList@LIBSTMF_1.0 1.0
+ stmfGetTargetGroupMembers@LIBSTMF_1.0 1.0
+ stmfGetTargetList@LIBSTMF_1.0 1.0
+ stmfGetTargetProperties@LIBSTMF_1.0 1.0
+ stmfGetViewEntryList@LIBSTMF_1.0 1.0
+ stmfImportLu@LIBSTMF_1.0 1.0
+ stmfInitProxyDoor@LIBSTMF_1.0 1.0
+ stmfLoadConfig@LIBSTMF_1.0 1.0
+ stmfLoadStmfProps@LIBSTMF_1.0 1.0
+ stmfLuStandby@LIBSTMF_1.0 1.0
+ stmfModifyLu@LIBSTMF_1.0 1.0
+ stmfModifyLuByFname@LIBSTMF_1.0 1.0
+ stmfOffline@LIBSTMF_1.0 1.0
+ stmfOfflineLogicalUnit@LIBSTMF_1.0 1.0
+ stmfOfflineTarget@LIBSTMF_1.0 1.0
+ stmfOnline@LIBSTMF_1.0 1.0
+ stmfOnlineLogicalUnit@LIBSTMF_1.0 1.0
+ stmfOnlineTarget@LIBSTMF_1.0 1.0
+ stmfPostProxyMsg@LIBSTMF_1.0 1.0
+ stmfRemoveFromHostGroup@LIBSTMF_1.0 1.0
+ stmfRemoveFromTargetGroup@LIBSTMF_1.0 1.0
+ stmfRemoveViewEntry@LIBSTMF_1.0 1.0
+ stmfSetAluaState@LIBSTMF_1.0 1.0
+ stmfSetGlobalLuProp@LIBSTMF_1.0 1.0
+ stmfSetLuProp@LIBSTMF_1.0 1.0
+ stmfSetPersistMethod@LIBSTMF_1.0 1.0
+ stmfSetProviderData@LIBSTMF_1.0 1.0
+ stmfSetProviderDataProt@LIBSTMF_1.0 1.0
+ stmfSetStmfProp@LIBSTMF_1.0 1.0
+ stmfValidateView@LIBSTMF_1.0 1.0
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ebec863
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+stmfadm-man.patch
diff --git a/debian/patches/stmfadm-man.patch b/debian/patches/stmfadm-man.patch
new file mode 100644
index 0000000..4300c74
--- /dev/null
+++ b/debian/patches/stmfadm-man.patch
@@ -0,0 +1,38 @@
+Index: stmf/usr/src/man/man1m/stmfadm.1m
+===================================================================
+--- stmf.orig/usr/src/man/man1m/stmfadm.1m 2013-05-14 22:29:10.000000000 +0400
++++ stmf/usr/src/man/man1m/stmfadm.1m 2013-05-15 12:50:05.702661825 +0400
+@@ -3,7 +3,7 @@
+ .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
+ .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the
+ .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
+-.TH STMFADM 1M "Jul 30, 2009"
++.TH STMFADM 8 "Jul 30, 2009"
+ .SH NAME
+ stmfadm \- SCSI target mode framework command line interface
+ .SH SYNOPSIS
+@@ -1113,24 +1113,3 @@
+ .fi
+ .in -2
+ .sp
+-
+-.SH ATTRIBUTES
+-.sp
+-.LP
+-See \fBattributes\fR(5) for descriptions of the following attributes:
+-.sp
+-
+-.sp
+-.TS
+-box;
+-c | c
+-l | l .
+-ATTRIBUTE TYPE ATTRIBUTE VALUE
+-_
+-Interface Stability Committed
+-.TE
+-
+-.SH SEE ALSO
+-.sp
+-.LP
+-\fBsbdadm\fR(1M), \fBattributes\fR(5)
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ca18898
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,53 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/architecture.mk
+
+export DPKG_GENSYMBOLS_CHECK_LEVEL := 4
+
+# list of arch for which build 32-bit library
+lib32 := illumos-amd64 kopensolaris-amd64
+
+# list of arch for which build 64-bit library
+lib64 :=
+
+variants := default
+
+ifneq (,$(filter $(DEB_HOST_ARCH), $(lib32)))
+variants += 32
+endif
+ifneq (,$(filter $(DEB_HOST_ARCH), $(lib64)))
+variants += 64
+endif
+
+configure.32 := --libdir=\$${prefix}/lib32 --disable-progs CFLAGS="-m32"
+configure.64 := --libdir=\$${prefix}/lib64 --disable-progs CFLAGS="-m64"
+
+%:
+ dh $@
+
+override_dh_auto_configure : $(variants:%=configure-%-stamp)
+override_dh_auto_build : $(variants:%=build-%-stamp)
+override_dh_auto_install : $(variants:%=install-%-stamp)
+override_dh_auto_clean:
+ rm -rf debian/build
+
+override_dh_strip:
+ dh_strip -p libstmf1 --dbg-package=libstmf1-dbg
+ dh_strip -N libstmf1
+
+configure-%-stamp:
+ dh_auto_configure -B debian/build/$* -- \
+ --libexecdir=\$${prefix}/lib \
+ $(configure.$*) \
+ LDFLAGS="$(LDFLAGS) -Wl,--as-needed"
+ touch $@
+
+build-%-stamp: configure-%-stamp
+ dh_auto_build -B debian/build/$*
+ touch $@
+
+install-%-stamp: build-%-stamp
+ dh_auto_install -B debian/build/$*
+ touch $@
+
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..4aceb10
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1 @@
+unapply-patches
diff --git a/debian/stmfadm.install b/debian/stmfadm.install
new file mode 100644
index 0000000..a2d0dc7
--- /dev/null
+++ b/debian/stmfadm.install
@@ -0,0 +1 @@
+usr/sbin/stmfadm
diff --git a/debian/stmfadm.manpages b/debian/stmfadm.manpages
new file mode 100644
index 0000000..3b937a0
--- /dev/null
+++ b/debian/stmfadm.manpages
@@ -0,0 +1 @@
+usr/src/man/man1m/stmfadm.1m
diff --git a/debian/stmfsvc.install b/debian/stmfsvc.install
new file mode 100644
index 0000000..eb15839
--- /dev/null
+++ b/debian/stmfsvc.install
@@ -0,0 +1,2 @@
+usr/lib/stmfsvc
+lib/svc/manifest/system/stmf.xml