OSDN Git Service

added deb package build environment.
authorTaizo ITO <taizo.ito@hde.co.jp>
Fri, 10 Jul 2009 02:29:33 +0000 (11:29 +0900)
committerTaizo ITO <taizo.ito@hde.co.jp>
Fri, 10 Jul 2009 02:29:33 +0000 (11:29 +0900)
Makefile.am
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/files [new file with mode: 0644]
debian/postrm [new file with mode: 0644]
debian/rules [new file with mode: 0755]

index e193780..482f62b 100644 (file)
@@ -1,5 +1,5 @@
 man_MANS = pam_smtpauth.5
-EXTRA_DIST = NEWS COPYING README INSTALL AUTHORS ChangeLog pam_smtpauth.spec sample/* $(man_MANS)
+EXTRA_DIST = NEWS COPYING README INSTALL AUTHORS ChangeLog pam_smtpauth.spec sample/* $(man_MANS) debian/*
 
 SUBDIRS = src tools
 
@@ -14,3 +14,6 @@ install-data-local:
 
 uninstall-local:
        @$(NORMAL_UNINSTALL)
+
+mkdeb:
+       dpkg-buildpackage -rfakeroot
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..c584b3e
--- /dev/null
@@ -0,0 +1,9 @@
+libpam-smtpauth (0.9.6-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Taizo ITO <taizo.ito@hde.co.jp>  Fri, 10 Jul 2009 12:05:59 +0900
+
+Local variables:
+mode: debian-changelog
+End:
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..6f294e3
--- /dev/null
@@ -0,0 +1,11 @@
+Source: libpam-smtpauth
+Build-Depends: debhelper (>= 5.0.22), binutils (>= 2.14.90.0.7), libpam0g-dev
+Section: admin
+Priority: extra
+Maintainer: Taizo ITO <taizo.ito@hde.co.jp>
+Standards-Version: 3.1.1.1
+
+Package: libpam-smtpauth
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Pluggable Authentication Module allowing SMTP authentication interface.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..356c202
--- /dev/null
@@ -0,0 +1,8 @@
+This package was debianized by Taizo ITO (taizo.ito@hde.co.jp) on
+Fri Jul 10 12:06:21 JST 2009.
+
+Author: 
+    taizo.ito@hde.co.jp
+    Taizo ITO 7/10/09
+
+See COPYING for license text.
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..e27308b
--- /dev/null
@@ -0,0 +1,3 @@
+etc
+lib/security
+usr/share/man/man5
diff --git a/debian/files b/debian/files
new file mode 100644 (file)
index 0000000..f7c8725
--- /dev/null
@@ -0,0 +1 @@
+libpam-smtpauth_0.9.6-1_i386.deb admin extra
diff --git a/debian/postrm b/debian/postrm
new file mode 100644 (file)
index 0000000..2cfee1d
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+if [ "$0" = "purge" ]
+then
+    rm -f /etc/pam_smtpauth.conf
+fi
+#DEBHELPER#
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..7984f55
--- /dev/null
@@ -0,0 +1,63 @@
+#!/usr/bin/make -f
+# -*- Makefile -*- made with the aid of dh_make, by Craig Small
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+# Some lines taken from debmake, by Cristoph Lameter.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+SHELL = /bin/sh
+
+build: build-stamp
+build-stamp: configure-stamp
+       dh_testdir
+       $(MAKE)
+       touch build-stamp
+
+configure-stamp:
+       ./configure --prefix=/usr --sysconfdir=/etc --libdir=/lib --enable-debug=no
+       touch configure-stamp
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp install-stamp configure-stamp
+       -$(MAKE) clean
+       dh_clean
+
+install: install-stamp
+install-stamp: build-stamp
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       #dh_installdirs lib/security
+       make install DESTDIR=`pwd`/debian/tmp 
+       #install -m 644 src/pam_smtpauth.so debian/tmp/lib/security
+       rm -rf debian/tmp/usr/bin
+       touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installdocs README AUTHORS COPYING NEWS
+       dh_installchangelogs ChangeLog
+       dh_installexamples sample/pam_smtpauth.conf
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+source diff:                                                                  
+       @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary