diff options
| author | Roy Marples <roy@marples.name> | 2016-11-04 15:37:43 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-11-04 15:37:43 +0000 |
| commit | 37dc166b9c0eda0b09a24004f1d9986e13371241 (patch) | |
| tree | a493fbda38500d92cff9afc6fde8d2df8f7afdc3 /Makefile | |
| parent | 609ea901d1cc8388776822b5803ee1c4a7f1baf4 (diff) | |
| download | dhcpcd-37dc166b9c0eda0b09a24004f1d9986e13371241.tar.xz | |
make distinfo now produces a .distinfo file which contains checksum(s) of
the dist file. This distinfo file is then signed with a PGP key.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -56,6 +56,10 @@ FOSSILID?= current DISTPREFIX?= ${PROG}-${VERSION} DISTFILEGZ?= ${DISTPREFIX}.tar.gz DISTFILE?= ${DISTPREFIX}.tar.xz +DISTINFO= ${DISTFILE}.distinfo +DISTINFOSIGN= ${DISTINFO}.asc +CKSUM?= cksum -a SHA256 +PGP?= netpgp HOST_SH?= /bin/sh @@ -141,13 +145,21 @@ clean: for x in ${SUBDIRS} test; do cd $$x; ${MAKE} $@; cd ..; done distclean: clean - rm -f .depend config.h config.mk config.log + rm -f .depend config.h config.mk config.log \ + ${DISTFILE} ${DISTFILEGZ} ${DISTINFO} ${DISTINFOSIGN} dist: fossil tarball --name ${DISTPREFIX} ${FOSSILID} ${DISTFILEGZ} gunzip -c ${DISTFILEGZ} | xz >${DISTFILE} rm ${DISTFILEGZ} +distinfo: dist + ${CKSUM} ${DISTFILE} >${DISTINFO} + #printf "SIZE (${DISTFILE}) = %s\n" $$(wc -c <${DISTFILE}) >>${DISTINFO} + ${PGP} --sign --detach --armor --output=${DISTINFOSIGN} ${DISTINFO} + chmod 644 ${DISTINFOSIGN} + ls -l ${DISTFILE} ${DISTINFO} ${DISTINFOSIGN} + snapshot: rm -rf /tmp/${DISTPREFIX} ${INSTALL} -d /tmp/${DISTPREFIX} |
