1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
include /usr/share/quilt/quilt.make
CFLAGS = -Wall -g
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
## -------- BUILD TARGETS
build: build-stamp
build-stamp: patch
dh_testdir
touch build-stamp
## -------- BUILD TARGETS
build-apache20:
dh_testdir
#-$(MAKE) clean
[ ! -f Makefile ] || $(MAKE) clean
autoconf
./configure --without-krb4 APXS=/usr/bin/apxs2 --with-apache=/usr/bin/apache2
make
## -------- INSTALL TARGETS
apache20: build-apache20
mkdir -p $(CURDIR)/debian/libapache2-mod-auth-kerb/usr/lib/apache2/modules/ \
$(CURDIR)/debian/libapache2-mod-auth-kerb/usr/share/doc/libapache2-mod-auth-kerb \
$(CURDIR)/debian/libapache2-mod-auth-kerb/etc/apache2/mods-available
install -s -m 644 $(CURDIR)/src/.libs/mod_auth_kerb.so $(CURDIR)/debian/libapache2-mod-auth-kerb/usr/lib/apache2/modules/mod_auth_kerb.so
install $(CURDIR)/src/.libs/mod_auth_kerb.so $(CURDIR)/debian/libapache2-mod-auth-kerb/usr/lib/apache2/modules/mod_auth_kerb.so
install -m644 $(CURDIR)/debian/auth_kerb.load $(CURDIR)/debian/libapache2-mod-auth-kerb/etc/apache2/mods-available
install -m 644 $(CURDIR)/README \
$(CURDIR)/debian/libapache2-mod-auth-kerb/usr/share/doc/libapache2-mod-auth-kerb/
## -------- CLEAN TARGETS
clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp
rm -f config.log config.status
#-$(MAKE) clean
[ ! -f Makefile ] || $(MAKE) clean
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
rm -f config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
rm -f config.guess
endif
rm -fr src/.libs spnegokrb5/.libs
rm -f debian/files
dh_clean -k
## -------- INSTALL TARGETS
install: install-stamp
intall-stamp:
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Build architecture-independent files here.
binary-indep:
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build apache20
dh_testdir -a
dh_testroot -a
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-arch binary-indep
.PHONY: binary-indep binary-arch build-apache20 binary install patch unpatch
|