2005-04-20 14:02:39 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
# This is the debhelper compatibility version to use.
|
2006-03-20 12:48:31 +01:00
|
|
|
export DH_COMPAT=4
|
2005-04-20 14:02:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
PYTHON=/usr/bin/python2.3
|
|
|
|
|
|
|
|
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
|
|
|
|
CFLAGS += -g
|
|
|
|
endif
|
|
|
|
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
|
|
|
INSTALL_PROGRAM += -s
|
|
|
|
endif
|
|
|
|
|
|
|
|
build: build-stamp
|
|
|
|
|
|
|
|
build-stamp:
|
|
|
|
dh_testdir
|
|
|
|
touch build-stamp
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-stamp
|
|
|
|
|
2006-03-20 12:48:31 +01:00
|
|
|
cd doc && make clean
|
|
|
|
cd po && rm -f *.mo
|
2006-03-20 12:50:29 +01:00
|
|
|
python setup.py clean
|
|
|
|
rm -rf build
|
2006-03-20 12:48:31 +01:00
|
|
|
|
2005-04-20 14:02:39 +02:00
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
|
2006-10-02 11:38:45 +02:00
|
|
|
$(PYTHON) setup.py install --prefix=$(CURDIR)/debian/authentic/usr --no-compile
|
2005-09-27 12:40:04 +02:00
|
|
|
mv $(CURDIR)/debian/authentic/usr/bin/* $(CURDIR)/debian/authentic/usr/sbin/
|
|
|
|
rmdir $(CURDIR)/debian/authentic/usr/bin
|
2005-05-04 14:57:48 +02:00
|
|
|
cd po && make install prefix=$(CURDIR)/debian/authentic/
|
2006-03-20 11:34:19 +01:00
|
|
|
cp debian/vhost-apache-authentic $(CURDIR)/debian/authentic/etc/apache2/sites-available/authentic
|
|
|
|
cp debian/apache2.conf $(CURDIR)/debian/authentic/usr/share/authentic/
|
2005-06-02 15:48:51 +02:00
|
|
|
chown www-data.www-data $(CURDIR)/debian/authentic/var/lib/authentic/
|
2006-03-31 16:23:05 +02:00
|
|
|
chmod 0770 $(CURDIR)/debian/authentic/var/lib/authentic/
|
2005-04-20 14:02:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
2005-08-20 12:35:41 +02:00
|
|
|
dh_installcron
|
2005-04-20 14:02:39 +02:00
|
|
|
dh_installdocs
|
2006-03-20 12:48:31 +01:00
|
|
|
dh_installchangelogs
|
2005-05-04 11:21:26 +02:00
|
|
|
dh_installinit
|
2005-04-20 14:02:39 +02:00
|
|
|
dh_link
|
|
|
|
dh_strip
|
2006-03-20 12:48:31 +01:00
|
|
|
dh_compress
|
2005-06-02 15:48:51 +02:00
|
|
|
dh_fixperms -X /var/lib/authentic
|
2005-04-20 14:02:39 +02:00
|
|
|
dh_installdeb
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|