ports/187697: sysutils/hdup distfiles
Zsolt Udvari
udvzsolt at gmail.com
Sun Mar 23 17:14:47 UTC 2014
I've created patches, reworked the port. Attached the hdup.diff and
the new pkg-message file.
There are many changes:
- change MASTER_SITES and WWW
- stage support
- replace deprecated USE_BZIP2 and USE_GMAKE
- use option helpers
- drop configure patches, use ac_cv_path_* instead
- mcrypt, gpgv and lzop aren't depends (see pkg-message)
I hope the changes are OK.
2014-03-23 1:38 GMT+01:00 <linimon at freebsd.org>:
> Synopsis: sysutils/hdup distfiles
>
> State-Changed-From-To: open->feedback
> State-Changed-By: linimon
> State-Changed-When: Sun Mar 23 00:37:28 UTC 2014
> State-Changed-Why:
> To submitter: the port has already been removed. Would you be willing
> to become the maintainer and submit a complete set of patches?
>
>
> Responsible-Changed-From-To: freebsd-ports-bugs->linimon
> Responsible-Changed-By: linimon
> Responsible-Changed-When: Sun Mar 23 00:37:28 UTC 2014
> Responsible-Changed-Why:
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=187697
-------------- next part --------------
diff -ur hdup.orig/Makefile hdup/Makefile
--- hdup.orig/Makefile 2014-03-23 18:04:27.000000000 +0100
+++ hdup/Makefile 2014-03-23 18:06:06.000000000 +0100
@@ -3,59 +3,36 @@
PORTNAME= hdup
PORTVERSION= 2.0.14
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= sysutils
-MASTER_SITES= http://www.miek.nl/projects/hdup2/ \
- http://www.miek.nl/projects/hdup2/previous/
+MASTER_SITES= http://archive.miek.nl/projects/hdup2/
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= udvzsolt at gmail.com
COMMENT= The little, spiffy, backup tool
-#WRKSRC= ${WRKDIR}/hdup2
-
-DEPRECATED= No more public distfiles
-EXPIRATION_DATE= 2014-03-10
+LICENSE= GPLv2
OPTIONS_DEFINE= GNUTAR_PORT DOCS
GNUTAR_PORT_DESC= GNU tar from ports
-BUILD_DEPENDS= mcrypt:${PORTSDIR}/security/mcrypt
-RUN_DEPENDS= mcrypt:${PORTSDIR}/security/mcrypt \
- gpgv:${PORTSDIR}/security/gnupg1 \
- lzop:${PORTSDIR}/archivers/lzop
-
-USES= pkgconfig
-USE_BZIP2= yes
-USE_GMAKE= yes
+USES= gmake pkgconfig tar:bzip2
GNU_CONFIGURE= yes
USE_GNOME= glib20
USE_AUTOTOOLS= autoconf
-MAN1= hdup.1
-MAN5= hdup.conf.5
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MGNUTAR_PORT}
-BUILD_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
-RUN_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
-GNUTAR= ${LOCALBASE}/bin/gtar
-.else
-# bsdtar appeared
-GNUTAR= /usr/bin/gtar
-.endif
-
-post-configure:
- @${REINPLACE_CMD} -e 's#%%GNUTAR%%#${GNUTAR}#g' ${WRKSRC}/src/hdup.h
+CONFIGURE_ENV+= ac_cv_path_mcrypt=${LOCALBASE}/bin/mcrypt \
+ ac_cv_path_gpg=${LOCALBASE}/bin/gpg \
+ ac_cv_path_lzop=${LOCALBASE}/bin/lzop
+
+GNUTAR_PORT_RUN_DEPENDS= gtar:${PORTSDIR}/archivers/gtar
+GNUTAR_PORT_CONFIGURE_ENV_ON= ac_cv_path_tar=${LOCALBASE}/bin/gtar
+GNUTAR_PORT_CONFIGURE_ENV_OFF= ac_cv_path_tar=/usr/bin/tar
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}; \
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}; \
- ${INSTALL_DATA} ${WRKSRC}/doc/FAQ.html ${DOCSDIR}; \
- ${MKDIR} ${EXAMPLESDIR}; \
- ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}; \
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}; \
+ ${INSTALL_DATA} ${WRKSRC}/doc/FAQ.html ${STAGEDIR}${DOCSDIR}; \
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}; \
+ ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
Only in hdup.orig/files: patch-configure.ac
Only in hdup.orig/files: patch-src::hdup.h.in
diff -ur hdup.orig/pkg-descr hdup/pkg-descr
--- hdup.orig/pkg-descr 2014-03-23 18:04:27.000000000 +0100
+++ hdup/pkg-descr 2014-03-23 07:36:48.000000000 +0100
@@ -12,4 +12,4 @@
- flexible regular expression based include/exclude mechanism
- designed to be run from cron
-WWW: http://www.miek.nl/projects/hdup2
+WWW: http://archive.miek.nl/projects/hdup/index.html
Only in hdup: pkg-message
diff -ur hdup.orig/pkg-plist hdup/pkg-plist
--- hdup.orig/pkg-plist 2014-03-23 18:04:27.000000000 +0100
+++ hdup/pkg-plist 2014-03-23 17:46:28.000000000 +0100
@@ -1,6 +1,8 @@
etc/hdup/hdup.conf-dist
etc/hdup/postrun-warn-user
sbin/hdup
+man/man1/hdup.1.gz
+man/man5/hdup.conf.5.gz
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/FAQ.html
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hdup.cron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pkg-message
Type: application/octet-stream
Size: 186 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/attachments/20140323/bf50f7bb/attachment.obj>
More information about the freebsd-ports-bugs
mailing list