/[fai]/trunk/debian/rules
ViewVC logotype

Diff of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 49 by lange, Mon Jul 10 16:46:09 2000 UTC revision 2960 by lange, Tue Oct 18 20:13:23 2005 UTC
# Line 1  Line 1 
1  #!/usr/bin/make -f  #!/usr/bin/make -f
2  # Sample debian/rules that uses debhelper.  
3  # GNU copyright 1997 to 1999 by Joey Hess.  DESTDIR=`pwd`/debian/tmp
4    SHAREDIR = $(DESTDIR)/usr/share/fai
5    DOCDIR=`pwd`/debian/fai-doc/usr/share/doc/fai-doc
6    
7    # we never want CVS and subversion files in our packages
8    export DH_ALWAYS_EXCLUDE=CVS:.svn
9    
10  # Uncomment this to turn on verbose mode.  # Uncomment this to turn on verbose mode.
11  #export DH_VERBOSE=1  #export DH_VERBOSE=1
12    
 # This is the debhelper compatability version to use.  
 export DH_COMPAT=1  
   
13  include VERSION  include VERSION
14    
15  build: build-stamp  build: build-stamp
16  build-stamp:  build-stamp:
17          dh_testdir          dh_testdir
18    
19          # Add here commands to compile the package.  # Add here commands to compile the package.
20  #       $(MAKE)          $(MAKE) all
21    
22          touch build-stamp          touch build-stamp
23    
24  clean:  clean:
25          dh_testdir          dh_testdir
26          dh_testroot  #       dh_testroot
27          rm -f build-stamp          rm -f build-stamp
28    # Add here commands to clean up after the build process.
         # Add here commands to clean up after the build process.  
29          -$(MAKE) clean          -$(MAKE) clean
   
30          dh_clean          dh_clean
31    
32  install: build  install: build
# Line 34  install: build Line 34  install: build
34          dh_testroot          dh_testroot
35          dh_clean -k          dh_clean -k
36          dh_installdirs          dh_installdirs
37    # Add here commands to install the package into debian/fai.
38          # Add here commands to install the package into debian/tmp.          $(MAKE) install
         $(MAKE) install DESTDIR=`pwd`/debian/tmp  
   
39    
40  # Build architecture-independent files here.  # Build architecture-independent files here.
41  binary-indep: build install  binary-indep: build install
 # We have nothing to do by default.  
   
 # Build architecture-dependent files here.  
 binary-arch: build install  
 #       dh_testversion  
42          dh_testdir          dh_testdir
43          dh_testroot          dh_testroot
44  #       dh_installdebconf  #       dh_installdebconf
45          dh_installdocs          dh_installdocs -Nfai-server -Nfai-quickstart
46  #       dh_installexamples  #       dh_installexamples
47  #       dh_installmenu  #       dh_installmenu
48  #       dh_installmanpages          dh_installman
49            dh_install --sourcedir=debian/tmp
50  #       dh_installinfo  #       dh_installinfo
         dh_undocumented  
         dh_installchangelogs  
51          dh_link          dh_link
52          dh_compress -Xtemplates          dh_installchangelogs
53          dh_fixperms          dh_compress -Xexamples -X.pdf
54          chmod a+rx `pwd`/debian/tmp/usr/share/doc/fai/templates/class/S[0-9]*.{source,sh,pl}          dh_fixperms -X make-fai-nfsroot.conf
55          chmod a+rx `pwd`/debian/tmp/usr/share/doc/fai/templates/scripts/*          chmod a+rx ${DOCDIR}/examples/*/class/[0-9][0-9]*
56          chmod a+rx `pwd`/debian/tmp/usr/lib/fai/sbin/rcS_fai          chmod -R a+rx ${DOCDIR}/examples/*/scripts/*
57          perl -pi -e 's/FAIVERSIONSTRING/$(VERSIONSTRING)/' `pwd`/debian/tmp/usr/share/doc/fai/README          chmod a+rx ${DOCDIR}/examples/*/hooks/*
58          echo " XXXXX $(VERSIONSTRING) XXXX"          find ${DOCDIR}/examples/*/files -name postinst | xargs chmod a+x
59          # remove CVS directories          chmod a+rx ${DOCDIR}/examples/utils/*
60          find `pwd`/debian/tmp -name CVS |xargs rm -rf          perl -pi -e 's/FAIVERSIONSTRING/$(VERSIONSTRING)/' $(shell pwd)/debian/fai-client/usr/share/doc/fai-client/README
61          # You may want to make some executables suid here.  # You may want to make some executables suid here.
62          dh_installdeb          dh_installdeb
63          dh_gencontrol          dh_gencontrol
64          dh_md5sums          dh_md5sums
65          dh_builddeb          dh_builddeb
66    
67    # Build architecture-dependent files here.
68    binary-arch: build install
69    
70  binary: binary-indep binary-arch  binary: binary-indep binary-arch
71  .PHONY: build clean binary-indep binary-arch binary install  .PHONY: build clean binary-indep binary-arch binary install

Legend:
Removed from v.49  
changed lines
  Added in v.2960

  ViewVC Help
Powered by ViewVC 1.1.5