Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  6 Sep 2003 12:25:55 +0200 (CEST)
From:      Martin Matuska <martin@tradex.sk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/56517: [CHANGE-REQUEST] ports/flexbackup 1.2.0
Message-ID:  <20030906102555.088C625998@mail.tradex.sk>
Resent-Message-ID: <200309061030.h86AUKbK008081@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         56517
>Category:       ports
>Synopsis:       [CHANGE-REQUEST] ports/flexbackup 1.2.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 06 03:30:20 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Martin Matuska <martin@tradex.sk>
>Release:        FreeBSD 4.8-RELEASE-p3 i386
>Organization:
>Environment:
FreeBSD 4.8-RELEASE-p3 i386
>Description:
	The included patch changes in flexbackup:
	a) port should obey LOCALBASE, so default configuration file is set to /usr/local/etc
	b) the pkg-message file does not have %%PREFIX%% replaced - so +DISPLAY contains %%PREFIX%%
	   this applies for both installed port and built package

>How-To-Repeat:
>Fix:
REMOVED FILE: flexbackup/pkg-message

diff -Nbur flexbackup.orig/Makefile flexbackup/Makefile
--- flexbackup.orig/Makefile	Sat Sep  6 11:59:21 2003
+++ flexbackup/Makefile	Sat Sep  6 11:59:28 2003
@@ -7,7 +7,7 @@
 
 PORTNAME=	flexbackup
 PORTVERSION=	1.2.0
-PORTREVISION?=	2
+PORTREVISION?=	3
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.edwinh.org/flexbackup/tarball/ \
 		http://www.reynoldsnet.org/flexbackup/tarball/
@@ -15,7 +15,9 @@
 MAINTAINER=	johnjen@reynoldsnet.org
 COMMENT=	Perl-based flexible backup system that can use dump/afio/cpio/tar/star
 
-MAKE_ARGS=	PERLPATH=${PERL}
+MAKE_ARGS=	CONFFILE=${LOCALBASE}/etc/flexbackup.conf \
+		PERLPATH=${PERL}
+PKGMESSAGE=	${WRKDIR}/pkg-message
 
 USE_PERL5=	yes
 
@@ -57,6 +59,10 @@
 	@${ECHO} "flexbackup.conf file to point to 'gtar'"
 	@${ECHO}
 
+post-build:
+	@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
+		${.CURDIR}/pkg-message.in > ${WRKDIR}/pkg-message
+
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/fb.install ${LOCALBASE}/bin/flexbackup
 	${INSTALL_DATA} ${WRKSRC}/flexbackup.conf ${LOCALBASE}/etc/flexbackup.conf.sample
@@ -68,5 +74,5 @@
 	${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
 .endfor
 .endif
-	@${CAT} ${PKGMESSAGE} | ${SED} -e 's:%%PREFIX%%:${PREFIX}:g'
+	@${CAT} ${PKGMESSAGE}
 .include <bsd.port.mk>
diff -Nbur flexbackup.orig/pkg-message.in flexbackup/pkg-message.in
--- flexbackup.orig/pkg-message.in	Thu Jan  1 01:00:00 1970
+++ flexbackup/pkg-message.in	Sat Sep  6 11:59:28 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 
+
+  %%PREFIX%%/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 (until the man 
+pages are written :).
+
+-------------------------------------------------------------------------------
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030906102555.088C625998>