]> git.proxmox.com Git - libnet-http-perl.git/blob - Makefile
6ed6efd860892f33ad35ebc03512aa601eeb2496
[libnet-http-perl.git] / Makefile
1 # Source from CPAN
2
3 # Note: We compileour own package because of Debian bug #704134
4 # see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704134
5
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
17 ARCH=all
18 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
19
20 all: ${DEB}
21
22 .PHONY: dinstall
23 dinstall: deb
24 dpkg -i ${DEB}
25
26 .PHONY: deb
27 deb ${DEB}:
28 rm -rf ${PKGDIR}
29 tar xf ${PKGSRC}
30 cd ${PKGDIR}; tar xf ../${DEBSRC}
31 cd ${PKGDIR}; patch -p1 <../update-changelog.patch
32 cd ${PKGDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
33 lintian ${DEB}
34
35 .PHONY: clean
36 clean:
37 rm -rf *~ *.deb *.changes ${PKGDIR}
38
39 .PHONY: distclean
40 distclean: clean
41
42 .PHONY: upload
43 upload: ${DEB}
44 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
45 mkdir -p /pve/${RELEASE}/extra
46 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
47 rm -f /pve/${RELEASE}/extra/Packages*
48 cp ${DEB} /pve/${RELEASE}/extra
49 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
50 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
51