File: rules

package info (click to toggle)
gnumed-server 22.15-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 46,556 kB
  • sloc: sql: 1,217,005; python: 15,469; sh: 1,553; makefile: 20
file content (24 lines) | stat: -rwxr-xr-x 979 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

%:
	dh $@ --with python3

override_dh_install:
	dh_install
	cp -a server/bootstrap/[a-z]* debian/$(DEB_SOURCE)/var/lib/gnumed/server/bootstrap
	for conffile in `find debian/$(DEB_SOURCE)/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/$(DEB_SOURCE)/usr/bin/`basename "$$script" .sh` ; \
	    else \
		cp -a "$$script" debian/$(DEB_SOURCE)/usr/sbin/`basename "$$script" .sh` ; \
	    fi \
	done
	cp -a server/gm-fingerprint_db.py debian/$(DEB_SOURCE)/usr/sbin/gm-fingerprint_db ; \
	find debian -name xtest.py -delete