2006-04-26 12:28:53 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# This file is public domain software, originally written by Joey Hess.
|
|
|
|
#
|
|
|
|
# This version is for a multibinary package. It also allows you to build any
|
|
|
|
# of the binary packages independantly, via binary-<package> targets.
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
export DH_VERBOSE=1
|
2008-04-15 15:40:42 +00:00
|
|
|
MAJOR=$(shell sed -ne 's/^[^(]*(\([^)]*\)).*/\1/;1p' debian/changelog)
|
2013-02-04 18:45:02 +00:00
|
|
|
REV=$(shell env LANG=C svn info --non-interactive | awk '/^Revision:/ { print $$2 }')
|
2008-04-15 15:54:48 +00:00
|
|
|
VERSION="${MAJOR}~svn${REV}"
|
2008-04-15 15:40:42 +00:00
|
|
|
export VERSION
|
2006-04-26 12:28:53 +00:00
|
|
|
|
2013-04-23 15:11:00 +00:00
|
|
|
override_dh_install:
|
|
|
|
#dh install
|
|
|
|
$(MAKE) install-alternc DESTDIR=$(CURDIR)/debian/alternc
|
|
|
|
$(MAKE) install-squirrelmail DESTDIR=$(CURDIR)/debian/alternc-squirrelmail
|
|
|
|
$(MAKE) install-roundcube DESTDIR=$(CURDIR)/debian/alternc-roundcube
|
|
|
|
$(MAKE) install-upnp DESTDIR=$(CURDIR)/debian/alternc-upnp
|
|
|
|
$(MAKE) install-awstats DESTDIR=$(CURDIR)/debian/alternc-awstats
|
|
|
|
$(MAKE) install-slave DESTDIR=$(CURDIR)/debian/alternc-slave
|
|
|
|
|
|
|
|
%:
|
|
|
|
dh $@
|
2006-04-26 12:28:53 +00:00
|
|
|
|
2008-04-15 15:40:42 +00:00
|
|
|
|
|
|
|
build-snapshot:
|
|
|
|
@echo "building a package based on the current snapshot (${VERSION})"
|
2008-04-15 16:09:15 +00:00
|
|
|
svn update || true
|
2008-04-15 15:40:42 +00:00
|
|
|
svn export . ../alternc-${VERSION}
|
2008-10-04 16:08:26 +00:00
|
|
|
cd ../alternc-${VERSION} && sed -i -e '1s/)/~svn${REV})/' debian/changelog && debuild
|