diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-12-12 19:33:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:47:17 -0500 |
commit | e15fbf28e8c725d9389a924f672562f7c74f4a18 (patch) | |
tree | e93955d1ba99c602557218725b124bbd2e5444b0 /packaging/debian/rules | |
parent | 9e00afdcbe53895f73afb6eaa94b43ba79668012 (diff) | |
download | samba-e15fbf28e8c725d9389a924f672562f7c74f4a18.tar.gz samba-e15fbf28e8c725d9389a924f672562f7c74f4a18.tar.bz2 samba-e15fbf28e8c725d9389a924f672562f7c74f4a18.zip |
r12197: Some improvements to the Debian package. Thanks to Steinar Gunderson
(This used to be commit 538afb479d6d217ac6f7c64592e94966607f23fb)
Diffstat (limited to 'packaging/debian/rules')
-rwxr-xr-x | packaging/debian/rules | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/packaging/debian/rules b/packaging/debian/rules index 61002f4a32..35c6c7a45b 100755 --- a/packaging/debian/rules +++ b/packaging/debian/rules @@ -7,7 +7,8 @@ SOURCEPATH=../source package=samba4 -configure: +configure: configure-stamp +configure-stamp: dh_testdir cd $(SOURCEPATH) && ./autogen.sh cd $(SOURCEPATH) && ./configure --with-fhs \ @@ -17,6 +18,7 @@ configure: --enable-static \ --sysconfdir=/etc \ --libdir=/etc/samba4 \ + --with-configdir=/etc/samba4 \ --with-privatedir=/etc/samba4 \ --with-piddir=/var/run/samba4 \ --localstatedir=/var \ @@ -27,29 +29,31 @@ configure: cd $(SOURCEPATH)/pidl && perl Makefile.PL verbose INSTALLDIRS=vendor PREFIX=/usr touch $@ -build: configure +build: build-stamp +build-stamp: configure dh_testdir $(MAKE) -C $(SOURCEPATH) proto -$(MAKE) -C $(SOURCEPATH) pch $(MAKE) -C $(SOURCEPATH) all - $(MAKE) -C $(SOURCEPATH)/pidl all doc + $(MAKE) -C $(SOURCEPATH)/pidl all touch $@ clean: dh_testdir + dh_testroot dh_clean - rm -f build configure + $(RM) debian/tmp -$(MAKE) -C $(SOURCEPATH) clean + $(RM) build-stamp configure-stamp binary-indep: build install - dh_testdir -i - dh_testroot -i + dh_testdir + dh_testroot dh_install -i --sourcedir=debian/tmp dh_installdocs -i dh_installchangelogs -i dh_compress -i dh_fixperms -i - dh_python -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i @@ -61,20 +65,20 @@ binary-indep: build install install: build dh_clean -k dh_installdirs + mkdir -p $(CURDIR)/debian/tmp/usr/share/man/man1 + mkdir -p $(CURDIR)/debian/tmp/etc/samba4 $(MAKE) -C $(SOURCEPATH) install DESTDIR=$(CURDIR)/debian/tmp $(MAKE) -C $(SOURCEPATH) manpages installman DESTDIR=$(CURDIR)/debian/tmp - mkdir -p $(CURDIR)/debian/tmp/etc/samba4 cp $(CURDIR)/debian/smb.conf $(CURDIR)/debian/tmp/etc/samba4 $(MAKE) -C $(SOURCEPATH)/pidl install DESTDIR=$(CURDIR)/debian/tmp binary-arch: build install - dh_testdir -a - dh_testroot -a + dh_testdir + dh_testroot dh_install -a --sourcedir=debian/tmp dh_installchangelogs -a - dh_installdocs -a dh_strip -a - dh_python -a + dh_perl -a dh_compress -a dh_fixperms -a dh_makeshlibs -a @@ -86,4 +90,4 @@ binary-arch: build install binary: binary-arch binary-indep -.PHONY: binary binary-arch binary-indep clean +.PHONY: configure build install binary binary-arch binary-indep clean |