debian/rules
changeset 103 de27336a2273
parent 70 391d82fcd42c
equal deleted inserted replaced
102:ae97422b2857 103:de27336a2273
     1 #!/usr/bin/make -f
     1 #!/usr/bin/make -f
     2 # -*- makefile -*-
       
     3 # Sample debian/rules that uses debhelper.
       
     4 # This file was originally written by Joey Hess and Craig Small.
       
     5 # As a special exception, when this file is copied by dh-make into a
       
     6 # dh-make output file, you may use that output file without restriction.
       
     7 # This special exception was added by Craig Small in version 0.37 of dh-make.
       
     8 
       
     9 # Uncomment this to turn on verbose mode.
       
    10 #export DH_VERBOSE=1
     2 #export DH_VERBOSE=1
    11 
     3 
       
     4 %:
       
     5 	dh $@
       
     6 
       
     7 override_dh_install:
       
     8 	dh_install
       
     9 	install -d $(CURDIR)/debian/ftbackup/etc
       
    10 	install -m 0600 -o root -g root \
       
    11 		ftbackup.conf.example \
       
    12 		$(CURDIR)/debian/ftbackup/etc/ftbackup.conf
    12 
    13 
    13 
    14 
    14 configure: configure-stamp
    15 #-	# Add here commands to install the package into debian/ftbackup.
    15 configure-stamp:
    16 #-	./Build --destdir=$(CURDIR)/debian/ftbackup install
    16 	dh_testdir
    17 #-
    17 	# Add here commands to configure the package.
    18 #-	install -d $(CURDIR)/debian/ftbackup/etc
    18 	perl Build.PL --install-base=/usr
    19 #-	install -m 0600 ftbackup.conf.example $(CURDIR)/debian/ftbackup/etc/ftbackup.conf
    19 	touch $@
       
    20 
       
    21 
       
    22 build: build-stamp
       
    23 
       
    24 build-stamp: configure-stamp  
       
    25 	dh_testdir
       
    26 
       
    27 	# Add here commands to compile the package.
       
    28 	./Build
       
    29 	#docbook-to-man debian/ftbackup.sgml > ftbackup.1
       
    30 
       
    31 	touch $@
       
    32 
       
    33 clean: 
       
    34 	dh_testdir
       
    35 	dh_testroot
       
    36 	rm -f build-stamp configure-stamp
       
    37 
       
    38 	# Add here commands to clean up after the build process.
       
    39 	-./Build distclean
       
    40 
       
    41 	dh_clean 
       
    42 
       
    43 install: build
       
    44 	dh_testdir
       
    45 	dh_testroot
       
    46 	dh_clean -k 
       
    47 	dh_installdirs
       
    48 
       
    49 	# Add here commands to install the package into debian/ftbackup.
       
    50 	./Build --destdir=$(CURDIR)/debian/ftbackup install
       
    51 
       
    52 	install -d $(CURDIR)/debian/ftbackup/etc
       
    53 	install -m 0600 ftbackup.conf.example $(CURDIR)/debian/ftbackup/etc/ftbackup.conf
       
    54 
       
    55 # Build architecture-independent files here.
       
    56 binary-indep: build install
       
    57 # We have nothing to do by default.
       
    58 
       
    59 # Build architecture-dependent files here.
       
    60 binary-arch: build install
       
    61 	dh_testdir
       
    62 	dh_testroot
       
    63 	dh_installchangelogs 
       
    64 	dh_installdocs
       
    65 	dh_installexamples
       
    66 #	dh_install
       
    67 #	dh_installmenu
       
    68 #	dh_installdebconf	
       
    69 #	dh_installlogrotate
       
    70 #	dh_installemacsen
       
    71 #	dh_installpam
       
    72 #	dh_installmime
       
    73 #	dh_python
       
    74 #	dh_installinit
       
    75 #	dh_installcron
       
    76 #	dh_installinfo
       
    77 	dh_installman
       
    78 	dh_link
       
    79 	dh_strip
       
    80 	dh_compress
       
    81 	dh_fixperms -X default
       
    82 #	dh_perl
       
    83 #	dh_makeshlibs
       
    84 	dh_installdeb
       
    85 	dh_shlibdeps
       
    86 	dh_gencontrol
       
    87 	dh_md5sums
       
    88 	dh_builddeb
       
    89 
       
    90 binary: binary-indep binary-arch
       
    91 .PHONY: build clean binary-indep binary-arch binary install configure