ports/57957: maintainer update: sysutils/flexbackup needs update [PATCH INCLUDED]

John Reynolds johnjen at reynoldsnet.org
Mon Oct 13 15:30:26 UTC 2003


>Number:         57957
>Category:       ports
>Synopsis:       maintainer update: sysutils/flexbackup needs update [PATCH INCLUDED]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 13 08:30:11 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     John Reynolds
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:

System: FreeBSD whale 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Tue Aug 19 23:10:49
MST 2003 root at dolphin:/usr/obj/usr/src/sys/WHALE i386

>Description:

The port sysutils/flexbackup needs to be updated to 1.2.1. This update brings
in man pages as well as another "knob" for configuring the s/w to use a conf
file in a non-default location (WITH_LOCALBASE_CONF).

It also uses a "dynamic" pkg-message mechanism that many ports are using so
that pkg-message gets spit out correctly (with the right PREFIX) even while
being installed from a package.

Note: This PR makes ports/56517 obsolete, so please close out ports/56517 too.

>How-To-Repeat:

 n/a

>Fix:

please "rm -f pkg-message; cvs remove pkg-message" from the sysutils/flexbackup
directory. pkg-message no longer applies as a ".in" version is being kept in
"files." The following patch will create files/pkg-message.in. Please "cvs add"
this files directory and pkg-message.in. Thanks!

diff -urN flexbackup.orig/Makefile flexbackup/Makefile
--- flexbackup.orig/Makefile	Sun Sep  7 16:05:29 2003
+++ flexbackup/Makefile	Mon Oct 13 08:17:37 2003
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	flexbackup
-PORTVERSION=	1.2.0
-PORTREVISION?=	2
+PORTVERSION=	1.2.1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.edwinh.org/flexbackup/tarball/ \
 		http://www.reynoldsnet.org/flexbackup/tarball/
@@ -15,10 +14,16 @@
 MAINTAINER=	johnjen at reynoldsnet.org
 COMMENT=	Perl-based flexible backup system that can use dump/afio/cpio/tar/star
 
+PKGMESSAGE=     pkg-message
+
 MAKE_ARGS=	PERLPATH=${PERL}
 
 USE_PERL5=	yes
 
+.if defined(WITH_LOCALBASE_CONF)
+MAKE_ARGS+=	CONFFILE=${LOCALBASE}/etc/flexbackup.conf
+.endif
+
 .if defined(WITH_AFIO)
 RUN_DEPENDS+=	afio:${PORTSDIR}/sysutils/afio
 .endif
@@ -57,9 +62,20 @@
 	@${ECHO} "flexbackup.conf file to point to 'gtar'"
 	@${ECHO}
 
+MAN1=          flexbackup.1
+MAN5=          flexbackup.conf.5
+MANCOMPRESSED= yes
+
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/fb.install ${LOCALBASE}/bin/flexbackup
 	${INSTALL_DATA} ${WRKSRC}/flexbackup.conf ${LOCALBASE}/etc/flexbackup.conf.sample
+	${GZIP_CMD} ${WRKSRC}/flexbackup.1 ${WRKSRC}/flexbackup.conf.5 || true
+	${INSTALL_DATA} ${WRKSRC}/flexbackup.1.gz ${LOCALBASE}/man/man1
+	${INSTALL_DATA} ${WRKSRC}/flexbackup.conf.5.gz ${LOCALBASE}/man/man5
+
+pre-build:
+	@${RM} -f ${PKGMESSAGE}
+	@${SED} "s:%%PREFIX%%:${PREFIX}:g" ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
 
 post-install:
 .if !defined(NOPORTDOCS)
@@ -68,5 +84,5 @@
 	${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
 .endfor
 .endif
-	@${CAT} ${PKGMESSAGE} | ${SED} -e 's:%%PREFIX%%:${PREFIX}:g'
+	@${CAT} ${PKGMESSAGE}
 .include <bsd.port.mk>
diff -urN flexbackup.orig/distinfo flexbackup/distinfo
--- flexbackup.orig/distinfo	Sun Sep  7 16:05:29 2003
+++ flexbackup/distinfo	Mon Oct 13 06:21:11 2003
@@ -1 +1 @@
-MD5 (flexbackup-1.2.0.tar.gz) = a5e57e7070ad3da1b5a9e0aed2aeda83
+MD5 (flexbackup-1.2.1.tar.gz) = 4955c89dbee354248f354a9bf0a480dd
diff -urN flexbackup.orig/files/pkg-message.in flexbackup/files/pkg-message.in
--- flexbackup.orig/files/pkg-message.in	Wed Dec 31 17:00:00 1969
+++ flexbackup/files/pkg-message.in	Mon Oct 13 06:55:42 2003
@@ -0,0 +1,23 @@
+--------------------- Flexbackup Configuration Information --------------------
+
+Flexbackup needs to have its configuration file placed in /etc. A template
+copy of this configuration file has been installed into
+
+  %%PREFIX%%/etc/flexbackup.conf.sample
+
+Please copy this file as 
+
+  /etc/flexbackup.conf
+
+(on all machines where you will run flexbackup) and edit appropriately for your
+site configuration. 
+
+ ****************************************************************************
+ **  Changes have occurred in this file up to and including version 1.2.0! **
+ ****************************************************************************
+
+Also see %%PREFIX%%/share/doc/flexbackup/README
+for more information on how to use flexbackup. Man pages have also been written
+and included in this version of the port!
+
+-------------------------------------------------------------------------------



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list