]>
Commit | Line | Data |
---|---|---|
ebae2ec4 DM |
1 | # Source from CPAN |
2 | ||
8bc0311e | 3 | # Note: We compile our own package because of Debian bug #704134 |
407ed76b DM |
4 | # see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704134 |
5 | ||
ebae2ec4 DM |
6 | RELEASE=3.0 |
7 | ||
8 | VERSION=6.06 | |
9 | PKGREL=1 | |
10 | ||
11 | PACKAGE=libnet-http-perl | |
12 | ||
13 | DEBSRC=libnet-http-perl_6.03-2.debian.tar.gz | |
14 | PKGDIR=Net-HTTP-${VERSION} | |
15 | PKGSRC=${PKGDIR}.tar.gz | |
16 | ||
8bc0311e DM |
17 | GITVERSION:=$(shell cat .git/refs/heads/master) |
18 | ||
ebae2ec4 DM |
19 | ARCH=all |
20 | DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb | |
21 | ||
22 | all: ${DEB} | |
23 | ||
24 | .PHONY: dinstall | |
25 | dinstall: deb | |
26 | dpkg -i ${DEB} | |
27 | ||
28 | .PHONY: deb | |
29 | deb ${DEB}: | |
30 | rm -rf ${PKGDIR} | |
31 | tar xf ${PKGSRC} | |
32 | cd ${PKGDIR}; tar xf ../${DEBSRC} | |
8bc0311e DM |
33 | echo "git clone git://git.proxmox.com/git/libnet-http-perl.git\\ngit checkout ${GITVERSION}" > ${PKGDIR}/debian/SOURCE |
34 | echo "debian/SOURCE" >> ${PKGDIR}/debian/docs | |
ebae2ec4 DM |
35 | cd ${PKGDIR}; patch -p1 <../update-changelog.patch |
36 | cd ${PKGDIR}; dpkg-buildpackage -rfakeroot -b -us -uc | |
37 | lintian ${DEB} | |
38 | ||
39 | .PHONY: clean | |
40 | clean: | |
41 | rm -rf *~ *.deb *.changes ${PKGDIR} | |
42 | ||
43 | .PHONY: distclean | |
44 | distclean: clean | |
45 | ||
46 | .PHONY: upload | |
47 | upload: ${DEB} | |
48 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw | |
49 | mkdir -p /pve/${RELEASE}/extra | |
50 | rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb | |
51 | rm -f /pve/${RELEASE}/extra/Packages* | |
52 | cp ${DEB} /pve/${RELEASE}/extra | |
53 | cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz | |
54 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro | |
55 |