View | Details | Raw Unified | Return to bug 100584
Collapse All | Expand All

(-)Makefile (-7 / +4 lines)
Lines 31-45 Link Here
31
		libexec/phttpget				\
31
		libexec/phttpget				\
32
		libexec/make_index portsnap/.package.this.directory
32
		libexec/make_index portsnap/.package.this.directory
33
PLIST_DIRS=	portsnap
33
PLIST_DIRS=	portsnap
34
34
SUB_FILES=	pkg-message
35
PKGMESSAGE=	${WRKDIR}/pkg-message
35
PKGMESSAGE=	${WRKDIR}/pkg-message
36
36
37
post-extract:
37
post-patch:
38
	${SED} -e "s#PREFIX=/usr/local#PREFIX=${PREFIX}#g" \
38
	${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" \
39
		${WRKSRC}/portsnap > ${WRKSRC}/portsnap.new
39
		${WRKSRC}/portsnap ${WRKSRC}/portsnap.8
40
	${MV} ${WRKSRC}/portsnap.new ${WRKSRC}/portsnap
41
	@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${PKGDIR}/pkg-message \
42
		> ${PKGMESSAGE}
43
40
44
do-install:
41
do-install:
45
	${INSTALL_SCRIPT} ${WRKSRC}/portsnap ${PREFIX}/sbin
42
	${INSTALL_SCRIPT} ${WRKSRC}/portsnap ${PREFIX}/sbin
(-)pkg-message (-20 lines)
Removed Link Here
1
2
Before you can use portsnap, you will have to create an update configuration
3
file specifying the server from which to fetch snapshots and the sha256 hash
4
of the openssl public key which is trusted to sign the snapshots.
5
6
A sample configuration file has been installed in
7
8
	%%PREFIX%%/etc/portsnap.conf.sample
9
10
which will fetch snapshots built and signed by the author.  If you want to
11
use these updates, copy that file to
12
13
	%%PREFIX%%/etc/portsnap.conf
14
15
otherwise, create that file as appropriate.
16
17
NOTE TO USERS UPGRADING FROM PORTSNAP 0.3.1 OR EARLIER:  The structure
18
of the portsnap configuration file has changed; you will have to replace
19
your existing portsnap.conf with a new version.
20
 
(-)files/patch-portsnap (+11 lines)
Added Link Here
1
--- portsnap.orig	Thu Jul 20 09:00:57 2006
2
+++ portsnap	Thu Jul 20 09:01:14 2006
3
@@ -81,7 +81,7 @@
4
 	NDEBUG=""
5
 	DDSTATS=""
6
 	INDEXONLY=""
7
-	PREFIX="/usr/local"
8
+	PREFIX="%%PREFIX%%"
9
 	SERVERNAME=""
10
 	REFUSE=""
11
 	LOCALDESC=""
(-)files/patch-portsnap.8 (+41 lines)
Added Link Here
1
--- portsnap.8.orig	Sat May 27 09:21:29 2006
2
+++ portsnap.8	Thu Jul 20 09:06:29 2006
3
@@ -57,13 +57,13 @@
4
 Store working files (e.g. downloaded updates) in
5
 .Ar workdir .
6
 (default:
7
-.Pa $PREFIX/portsnap ,
8
+.Pa %%PREFIX%%/portsnap ,
9
 or as given in the configuration file.)
10
 .It Fl f Ar conffile
11
 Read the configuration from from
12
 .Ar conffile .
13
 (default:
14
-.Pa $PREFIX/etc/portsnap.conf )
15
+.Pa %%PREFIX%%/etc/portsnap.conf )
16
 .It Fl I
17
 For the
18
 .Cm update
19
@@ -157,7 +157,7 @@
20
 .It
21
 If your clock is set to local time, adding the line
22
 .Pp
23
-.Dl 0 3 * * * root /usr/local/sbin/portsnap cron
24
+.Dl 0 3 * * * root /foo/sbin/portsnap cron
25
 .Pp
26
 to /etc/crontab is a good way to make sure you always have
27
 an up-to-date snapshot of the ports tree available which
28
@@ -218,10 +218,10 @@
29
 may be published, but only in aggregate and after anonymizing the
30
 individual systems.
31
 .Sh FILES
32
-.Bl -tag -width "$PREFIX/etc/portsnap.conf"
33
-.It $PREFIX/etc/portsnap.conf
34
+.Bl -tag -width "%%PREFIX%%/etc/portsnap.conf"
35
+.It %%PREFIX%%/etc/portsnap.conf
36
 Default location of the portsnap configuration file.
37
-.It $PREFIX/portsnap
38
+.It %%PREFIX%%/portsnap
39
 Default location where compressed snapshots are stored.
40
 .It /usr/ports
41
 Default location where the ports tree is extracted.
(-)files/pkg-message.in (+20 lines)
Added Link Here
1
2
Before you can use portsnap, you will have to create an update configuration
3
file specifying the server from which to fetch snapshots and the sha256 hash
4
of the openssl public key which is trusted to sign the snapshots.
5
6
A sample configuration file has been installed in
7
8
	%%PREFIX%%/etc/portsnap.conf.sample
9
10
which will fetch snapshots built and signed by the author.  If you want to
11
use these updates, copy that file to
12
13
	%%PREFIX%%/etc/portsnap.conf
14
15
otherwise, create that file as appropriate.
16
17
NOTE TO USERS UPGRADING FROM PORTSNAP 0.3.1 OR EARLIER:  The structure
18
of the portsnap configuration file has changed; you will have to replace
19
your existing portsnap.conf with a new version.
20

Return to bug 100584