From 2b4ac60e72610cb21e46cd48b69b763ee12716b3 Mon Sep 17 00:00:00 2001 From: losinshi Date: Wed, 27 Sep 2006 08:18:24 +0000 Subject: [PATCH] packaging git-svn-id: file:///home/jan/tmp/wetterstation/trunk@141 dd492736-c11a-0410-ad51-8c26713eaf7f --- debian/control | 4 ++-- debian/rules | 22 +++++++++++----------- debian/weatherstation-chart.cron.d | 4 ++++ debian/weatherstation-checksensor.cron.d | 4 ++++ 4 files changed, 21 insertions(+), 13 deletions(-) create mode 100644 debian/weatherstation-chart.cron.d create mode 100644 debian/weatherstation-checksensor.cron.d diff --git a/debian/control b/debian/control index 7d42187..201b25c 100644 --- a/debian/control +++ b/debian/control @@ -29,7 +29,7 @@ Description: Checks if the ELV-Sensors are OK If not, it send's a Mail. Package: weatherstation-database -Architecture: any +Architecture: all Depends: ${shlibs:Depends} Description: Database-Structure for the ELV-Station Contains a Dump for the ELV-Weatherstation. @@ -38,7 +38,7 @@ Description: Database-Structure for the ELV-Station You must import it to your Postgres-Server Package: weatherstation-frontend -Architecture: any +Architecture: all Depends: ${shlibs:Depends}, apache | apache2, php4 | php5 Description: Webfrontend for the ELV-Station A Webfrontend to show the Data from the ELV-Station diff --git a/debian/rules b/debian/rules index d774004..ee8a006 100755 --- a/debian/rules +++ b/debian/rules @@ -63,16 +63,16 @@ clean: install: install-indep install-arch install-indep: - #dh_testdir - #dh_testroot - #dh_clean -k -i - #dh_installdirs -i + dh_testdir + dh_testroot + dh_clean -k -i + dh_installdirs -i # Add here commands to install the indep part of the package into # debian/-doc. #INSTALLDOC# - ##dh_install -i + dh_install -i --sourcedir debian/weatherstation/ install-arch: dh_testdir @@ -103,7 +103,7 @@ binary-common: # dh_python cp $(CURDIR)/debian/weatherstation/etc/init.d/weatherd $(CURDIR)/debian/weatherstation-weatherd.init dh_installinit --no-start -pweatherstation-weatherd -# dh_installcron + dh_installcron -pweatherstation-checksensor -pweatherstation-chart # dh_installinfo # dh_installman dh_link $(PACKS) @@ -111,19 +111,19 @@ binary-common: dh_compress $(PACKS) dh_fixperms $(PACKS) # dh_perl - dh_makeshlibs -pweatherstation-weatherd -pweatherstation-checksensor -pweatherstation-chart -pweatherstation-database -pweatherstation-frontend - dh_installdeb -pweatherstation-weatherd -pweatherstation-checksensor -pweatherstation-chart -pweatherstation-database -pweatherstation-frontend - dh_shlibdeps -pweatherstation-weatherd -pweatherstation-checksensor -pweatherstation-chart -pweatherstation-database -pweatherstation-frontend + dh_makeshlibs $(PACKS) + dh_installdeb $(PACKS) + dh_shlibdeps $(PACKS) dh_gencontrol $(PACKS) dh_md5sums $(PACKS) dh_builddeb $(PACKS) # Build architecture independant packages using the common target. binary-indep: build-indep install-indep - #$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + $(MAKE) -f debian/rules DH_OPTIONS=-i PACKS="-pweatherstation-database -pweatherstation-frontend" binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch - $(MAKE) -f debian/rules DH_OPTIONS=-s PACKS="-pweatherstation-weatherd -pweatherstation-checksensor -pweatherstation-chart -pweatherstation-database -pweatherstation-frontend" binary-common + $(MAKE) -f debian/rules DH_OPTIONS=-s PACKS="-pweatherstation-weatherd -pweatherstation-checksensor -pweatherstation-chart" binary-common binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure diff --git a/debian/weatherstation-chart.cron.d b/debian/weatherstation-chart.cron.d new file mode 100644 index 0000000..808a0d2 --- /dev/null +++ b/debian/weatherstation-chart.cron.d @@ -0,0 +1,4 @@ +# +# Regular cron jobs for the weatherstation package +# +*/15 * * * * weatherstation /usr/bin/chart diff --git a/debian/weatherstation-checksensor.cron.d b/debian/weatherstation-checksensor.cron.d new file mode 100644 index 0000000..dc5b227 --- /dev/null +++ b/debian/weatherstation-checksensor.cron.d @@ -0,0 +1,4 @@ +# +# Regular cron jobs for the weatherstation package +# +*/15 * * * * weatherstation /usr/bin/checksensor