diff --git a/sysutils/fileprune/Makefile b/sysutils/fileprune/Makefile index 97c9704ae1bd..7ae3901684dc 100644 --- a/sysutils/fileprune/Makefile +++ b/sysutils/fileprune/Makefile @@ -2,16 +2,24 @@ # $FreeBSD$ PORTNAME= fileprune -PORTVERSION= 1.9 +PORTVERSION= 1.12 CATEGORIES= sysutils -MASTER_SITES= https://www.spinellis.gr/sw/unix/fileprune/ \ - https://www2.dmst.aueb.gr/dds/sw/unix/fileprune/ MAINTAINER= dds@FreeBSD.org COMMENT= Prune a file set according to a given age distribution -LICENSE= MIT +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes + +GH_ACCOUNT= dspinellis +GH_TAGNAME= 2dd22fc PLIST_FILES= bin/fileprune man/man1/fileprune.1.gz +MAKE_ARGS= CFLAGS="${CFLAGS}" PREFIX="${STAGEDIR}${PREFIX}" + +post-extract: + ${REINPLACE_CMD} -e 's,/share,,' ${WRKSRC}/Makefile .include diff --git a/sysutils/fileprune/distinfo b/sysutils/fileprune/distinfo index 5bfc38b20f5b..b0bb68791ef7 100644 --- a/sysutils/fileprune/distinfo +++ b/sysutils/fileprune/distinfo @@ -1,2 +1,3 @@ -SHA256 (fileprune-1.9.tar.gz) = 7f2238baf47c02b235dd5354d83b1ed9970fa8b8256e5ef3fa7b3e9b33e55ce9 -SIZE (fileprune-1.9.tar.gz) = 24335 +TIMESTAMP = 1537586160 +SHA256 (dspinellis-fileprune-1.12-2dd22fc_GH0.tar.gz) = d738ebe52f84fa29d85d795b281bb1b93d490c2df697d8c109f2ac9ea8e7251f +SIZE (dspinellis-fileprune-1.12-2dd22fc_GH0.tar.gz) = 30743 diff --git a/sysutils/fileprune/files/patch-Makefile b/sysutils/fileprune/files/patch-Makefile deleted file mode 100644 index 790fb7d142d7..000000000000 --- a/sysutils/fileprune/files/patch-Makefile +++ /dev/null @@ -1,13 +0,0 @@ ---- Makefile.orig 2014-06-27 00:40:28.370101738 +0800 -+++ Makefile 2014-06-27 00:40:53.285115312 +0800 -@@ -8,8 +8,8 @@ $(NAME): $(NAME).c - $(CC) $(CFLAGS) -o $@ $? -lm - - install: $(NAME) -- $(INSTALL) -s $(NAME) $(PREFIX)/bin -- gzip -c $(NAME).1 >$(PREFIX)/man/man1/$(NAME).1.gz -+ $(BSD_INSTALL_PROGRAM) $(NAME) $(DESTDIR)$(PREFIX)/bin -+ gzip -c $(NAME).1 > $(DESTDIR)$(PREFIX)/man/man1/$(NAME).1.gz - - clean: - rm -f $(NAME) $(NAME).o