File: rules

package info (click to toggle)
dvbstream 0.6%2Bcvs20090621-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 524 kB
  • sloc: ansic: 7,603; makefile: 56; perl: 43; sh: 20
file content (32 lines) | stat: -rwxr-xr-x 959 bytes parent folder | download | duplicates (3)
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
27
28
29
30
31
32
#!/usr/bin/make -f

export DEB_BUILD_HARDENING=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@


package := dvbstream
#date := $(shell date '+%Y%m%d')
date := 20090621
orig_source_dir := ${package}-${date}.orig
orig_source_tarball := ${package}_0.6+cvs${date}.orig.tar.gz
cvs_repos := :pserver:anonymous@dvbtools.cvs.sourceforge.net:/cvsroot/dvbtools
cvs_path := dvbstream
cvs_top := $(shell echo ${cvs_path} | cut -d "/" -f 1 -)

clean-orig-source:
	rm -rf ${cvs_top} ${orig_source_dir}
	rm -f ${orig_source_tarball}

get-orig-source: clean-orig-source
	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
	@echo "Type <enter> as CVS password."
	cvs -d ${cvs_repos} login
	cvs -d ${cvs_repos} history -report -n ${package}
	cvs -d ${cvs_repos} export -D ${date} ${cvs_path}
	mv ${cvs_path} ${orig_source_dir}
	rm -f ${orig_source_dir}/*edict*
	tar c ${orig_source_dir} | gzip -9 > ../tarballs/${orig_source_tarball}
	rm -rf ${cvs_top} ${orig_source_dir}