summaryrefslogtreecommitdiff
path: root/packaging/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/debian/rules')
-rwxr-xr-xpackaging/debian/rules68
1 files changed, 68 insertions, 0 deletions
diff --git a/packaging/debian/rules b/packaging/debian/rules
new file mode 100755
index 0000000000..5de994450d
--- /dev/null
+++ b/packaging/debian/rules
@@ -0,0 +1,68 @@
+#!/usr/bin/make -f
+# By Jelmer Vernooij
+# Made with the aid of debmake, by Christoph Lameter,
+# based on the sample debian/rules file for GNU hello by Ian Jackson.
+
+package=samba4
+
+configure:
+ $(checkdir)
+ cd source && ./autogen.sh
+ cd source && ./configure --with-fhs \
+ --prefix=/usr \
+ --enable-shared \
+ --enable-static \
+ --sysconfdir=/etc \
+ --libdir=/etc/samba4 \
+ --with-privatedir=/etc/samba4 \
+ --with-piddir=/var/run/samba4 \
+ --localstatedir=/var \
+ --with-pam \
+ --with-syslog \
+ --with-readline \
+ --with-ldap
+
+ touch configure
+
+build: configure
+ $(checkdir)
+ cd source && $(MAKE) proto all
+ touch build
+
+clean:
+ $(checkdir)
+ rm -f build
+ -cd source && $(MAKE) clean
+ rm -f `find . -name "*~"`
+ rm -rf debian/tmp `find debian/* -type d ! -name CVS` debian/files* core
+ rm -f debian/*substvars
+
+binary-indep: checkroot build
+ $(checkdir)
+# There are no architecture-independent files to be uploaded
+# generated by this package. If there were any they would be
+# made here.
+
+binary-arch: checkroot build
+ $(checkdir)
+ rm -rf debian/tmp `find debian/* -type d ! -name CVS`
+ install -d debian/tmp
+ cd debian/tmp && install -d `cat ../dirs`
+ cd source && $(MAKE) install DESTDIR=`pwd`/../debian/tmp
+ debstd
+ dpkg-gencontrol -isp -psamba4
+ chown -R root:root debian/tmp
+ chmod -R go=rX debian/tmp
+ dpkg --build debian/tmp ..
+
+define checkdir
+ test -f debian/rules
+endef
+
+binary: binary-indep binary-arch
+
+checkroot:
+ $(checkdir)
+ test root = "`whoami`"
+
+.PHONY: binary binary-arch binary-indep clean checkroot