source: trunk/debathena/third/cyrus-sasl2-mit/debian/rules @ 22790

Revision 22790, 2.1 KB checked in by ghudson, 16 years ago (diff)
* debathena/third/cyrus-sasl2-mit/debian: Import from Debathena package. Based on the defunct Debian cyrus-sasl2-mit package materials, with substantial modification. * debathena/third/cyrus-sasl2-mit/debathena-cyrus-sasl2-mit: Debathenificator-style script to create the packages. Does not use the debathenificator back end since we're not directly modifying a native system package.
  • Property svn:executable set to *
Line 
1#!/usr/bin/make -f
2
3export DH_COMPAT := 4
4
5# DBS options
6
7package         := cyrus-sasl2
8PWD             := $(shell pwd)
9
10SCRIPT_DIR     = /usr/share/dbs
11
12# the dbs rules
13TAR_DIR := @TARDIR@
14include $(SCRIPT_DIR)/dbs-build.mk
15
16# dpkg-arch rules
17ifeq (,$(DEB_BUILD_GNU_TYPE))
18  include $(SCRIPT_DIR)/dpkg-arch.mk
19endif
20
21
22AUTOTOOLS=rm -f acinclude.m4 aclocal.m4 config/config.sub \
23        config/config.guess config/ltmain.sh config/libtool.m4; \
24        libtoolize --force; \
25        aclocal-1.7 -I $(PWD)/$(BUILD_TREE)/cmulocal -I $(PWD)/$(BUILD_TREE)/config; \
26        autoheader; \
27        autoconf; \
28        automake-1.7 --add-missing --include-deps; \
29        touch stamp-h.in
30
31b := $(shell pwd)/debian/tmp
32
33arrange: $(STAMP_DIR)/arrange-stamp
34$(STAMP_DIR)/arrange-stamp: install
35        dh_testdir
36        dh_movefiles -plibsasl2-krb4-mit
37
38        touch $@
39
40binary: $(STAMP_DIR)/binary-stamp
41$(STAMP_DIR)/binary-stamp: binary-indep binary-arch
42        dh_testdir
43        touch $@
44
45binary-arch: $(STAMP_DIR)/binary-arch-stamp
46$(STAMP_DIR)/binary-arch-stamp: arrange
47        dh_testdir
48        dh_testroot
49        dh_installdocs debian/changelog.debian_non_mit
50        dh_installchangelogs $(BUILD_TREE)/ChangeLog
51        dh_strip
52        dh_compress
53        dh_fixperms
54        dh_installdeb
55        dh_shlibdeps
56        dh_gencontrol
57        dh_md5sums
58        dh_builddeb
59        touch $@
60
61binary-indep:
62$(STAMP_DIR)/binary-indep-stamp: arrange
63        dh_testdir
64        touch $@
65
66build: $(STAMP_DIR)/build-stamp
67$(STAMP_DIR)/build-stamp: config
68        dh_testdir
69        $(MAKE) -C $(BUILD_TREE)
70        touch $@
71
72clean:
73        dh_testdir
74        rm -rf $(STAMP_DIR) $(SOURCE_DIR)
75        perl $(SCRIPT_DIR)/dbs_split clean
76        dh_clean
77
78config: $(STAMP_DIR)/config-stamp
79$(STAMP_DIR)/config-stamp: $(patched)
80        dh_testdir
81        cd $(BUILD_TREE) && ( \
82        $(AUTOTOOLS); \
83        ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
84                --enable-static \
85                --enable-krb4 CPPFLAGS='-I/usr/include/kerberosIV' \
86                --with-saslauthd=no --disable-sample --with-dblib=none \
87                --disable-checkapop --disable-cram --disable-digest \
88                --disable-gssapi --disable-otp --disable-plain --disable-anon)
89
90        touch $@
91
92install: $(STAMP_DIR)/install-stamp
93$(STAMP_DIR)/install-stamp: build
94        dh_testdir
95        $(MAKE) -C $(BUILD_TREE) install DESTDIR=$(b)
96        touch $@
97
98.PHONY: build clean binary-indep binary-arch binary install
Note: See TracBrowser for help on using the repository browser.