packaging
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@141 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
parent
b0a5ba3790
commit
2b4ac60e72
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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/<package>-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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
#
|
||||
# Regular cron jobs for the weatherstation package
|
||||
#
|
||||
*/15 * * * * weatherstation /usr/bin/chart
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#
|
||||
# Regular cron jobs for the weatherstation package
|
||||
#
|
||||
*/15 * * * * weatherstation /usr/bin/checksensor
|
||||
Loading…
Reference in New Issue