source: trunk/rules @ 86

Last change on this file since 86 was 86, checked in by jaap, 7 years ago

Changed scripts to work with torque 5.0.1.

File size: 2.4 KB
Line 
1#!/usr/bin/make -f
2# Made with the aid of debmake, by Christoph Lameter,
3# based on the sample debian/rules file for GNU hello by Ian Jackson.
4#
5# Authors: Bas van der Vlies
6# Desc.  : Builds a torque deb package from the sources
7#
8# SVN INFO:
9#       $Id: rules 2385 2006-11-03 07:20:35Z bas $
10#
11#       compat=4
12
13package=torque
14
15patched: 
16        $(checkdir)
17
18        # Make scripts executable
19        #
20        chmod +x debian/patches/apply
21        chmod +x debian/conf_torque
22
23        # apply some patches
24        debian/patches/apply
25
26        touch patched
27
28build: patched
29        $(checkdir)
30        debian/conf_torque
31        $(MAKE)
32        touch build
33
34clean:
35        $(checkdir)
36        -rm -f build
37        -$(MAKE) distclean
38        -rm -f `find . -name "*~"`
39        -rm -rf debian/torque debian/files* core
40        -rm -f debian/*.debhelper
41
42binary-indep: checkroot build
43        $(checkdir)
44# There are no architecture-independent files to be uploaded
45# generated by this package.  If there were any they would be
46# made here.
47
48binary-arch: checkroot build
49        $(checkdir)
50        -rm -rf debian/torque
51        install -d debian/torque
52        cd debian/torque && install -d `cat ../dirs`
53
54        chmod 700 buildutils/pbs_mkdirs
55        DESTDIR=`pwd`/debian/torque buildutils/pbs_mkdirs\
56                -v -C./src/tools/chk_tree -d `pwd`/debian/torque/var/spool/torque all
57
58        $(MAKE) DESTDIR=`pwd`/debian/torque install
59
60          # OLD PBS stuff before 2.1.0
61          #libdir=`pwd`/debian/torque/usr/lib/torque \
62          #includedir=`pwd`/debian/torque/usr/include/torque \
63          #PBS_SERVER_HOME=`pwd`/debian/torque/var/spool/torque \
64
65        #debian/patch_gui_cmds.sh /usr/lib/torque
66
67        dh_testdir
68        dh_testroot
69        dh_installdirs
70        dh_installchangelogs CHANGELOG
71        #dh_installdocs -Xcontrib README.mpiexec
72        dh_installdocs -Xcontrib
73        dh_installexamples contrib/* -XCVS
74        dh_install
75        dh_link
76        dh_installdebconf
77        dh_compress
78        dh_fixperms
79        dh_installdeb
80        dh_makeshlibs --noscripts
81        dh_shlibdeps
82        dh_gencontrol
83
84        ## Do not modify any postinst/rm scripts
85        #
86        dh_installinit --noscripts
87
88        dh_md5sums
89
90        #chown -R root.root debian/torque
91        #chmod -R go=rX debian/torque
92
93        #
94        # Include pbs_mkdirs in the package, else we have to make own
95        # directories. Thanks to Jaap Dijkshoorn
96        #
97        cp buildutils/pbs_mkdirs debian/torque/usr/sbin
98
99        # Not in the standard install ;-)
100        #
101        #cp src/include/rm.h debian/torque/usr/include/torque
102        #cp src/include/log.h debian/torque/usr/include/torque
103
104        dh_builddeb
105
106define checkdir
107        test -f debian/rules
108endef
109
110binary: binary-indep binary-arch
111
112checkroot:
113        $(checkdir)
114        test root = "`whoami`"
115
116.PHONY: binary binary-arch binary-indep clean checkroot
Note: See TracBrowser for help on using the repository browser.