File: rules

package info (click to toggle)
gnumed-server 21.11-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 45,408 kB
  • ctags: 3,891
  • sloc: sql: 1,210,640; python: 13,526; sh: 1,476; makefile: 19
file content (26 lines) | stat: -rwxr-xr-x 1,018 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f
# debian/rules for gnumed-server using dh
# Andreas Tille <tille@debian.org>, GPL

pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')

%:
	dh $@ --with python2

override_dh_install:
	dh_install
	cp -a server/bootstrap/[a-z]* debian/$(pkg)/var/lib/gnumed/server/bootstrap
	for conffile in `find debian/$(pkg)/var/lib/gnumed/server/bootstrap -maxdepth 1 -type f -name \*.conf` ; do \
    	    sed -i 's/^\(interactive[[:space:]]*=[[:space:]]*\)yes/\1no/' "$$conffile" ; \
    	    sed -i 's/^\(password[[:space:]]*=[[:space:]]*\)/\1 gm-dbo/' "$$conffile" ; \
    	done
	for script in `ls server/gm-*.sh` ; do \
	    if [ "$$script" = "server/gm-remove_person.sh" -o \
	         "$$script" = "server/gm-move_backups_offsite.sh" ] ; then \
		cp -a "$$script" debian/$(pkg)/usr/bin/`basename "$$script" .sh` ; \
	    else \
		cp -a "$$script" debian/$(pkg)/usr/sbin/`basename "$$script" .sh` ; \
	    fi \
	done
	cp -a server/gm-fingerprint_db.py debian/$(pkg)/usr/sbin/gm-fingerprint_db ; \