Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= boxbackup |
8 |
PORTNAME= boxbackup |
9 |
PORTVERSION= 0.09 |
9 |
PORTVERSION= 0.10 |
10 |
CATEGORIES= sysutils |
10 |
CATEGORIES= sysutils |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
Lines 16-34
Link Here
|
16 |
COMMENT= An open source, completely automatic on-line backup system for UNIX |
16 |
COMMENT= An open source, completely automatic on-line backup system for UNIX |
17 |
|
17 |
|
18 |
USE_OPENSSL= yes |
18 |
USE_OPENSSL= yes |
19 |
HAS_CONFIGURE= yes |
19 |
GNU_CONFIGURE= yes |
20 |
CONFIGURE_ARGS= openssl:${OPENSSLBASE} |
|
|
21 |
USE_REINPLACE= yes |
20 |
USE_REINPLACE= yes |
22 |
USE_PERL5= yes |
21 |
USE_PERL5= yes |
|
|
22 |
USE_AUTOTOOLS= autoconf:259 aclocal:19 autoheader:259 |
23 |
ACLOCAL_ARGS+= -I ${WRKSRC}/infrastructure/m4 |
23 |
|
24 |
|
24 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
25 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
25 |
|
26 |
|
26 |
OPTIONS= CLIENT "Install the bbackupd client" On \ |
27 |
OPTIONS= CLIENT "Install the bbackupd client" On \ |
27 |
SERVER "Install the bbstored server" On \ |
28 |
SERVER "Install the bbstored server" On \ |
28 |
TESTS "Allows use of a 'check' target to run tests" Off |
29 |
GNUREADLINE "Enable the use of GNU readline" Off \ |
|
|
30 |
TESTS "Allows use of a 'test' target to run tests" Off |
29 |
|
31 |
|
30 |
.include <bsd.port.pre.mk> |
32 |
.include <bsd.port.pre.mk> |
31 |
|
33 |
|
|
|
34 |
TARGETOS!= ${ECHO_CMD} `${UNAME} -s``${UNAME} -r | ${SED} -e 's/[-(].*//'` | ${TR} A-Z a-z |
35 |
|
36 |
.if defined(WITH_GNUREADLINE) |
37 |
CONFIGURE_ARGS+=--enable-gnu-readline |
38 |
NO_PACKAGE= GNU GPL prevents distributing binaries linked against GNU readline |
39 |
.endif |
40 |
|
32 |
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_SERVER) |
41 |
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_SERVER) |
33 |
IGNORE= requires at least CLIENT or SERVER to be defined.\ |
42 |
IGNORE= requires at least CLIENT or SERVER to be defined.\ |
34 |
Please \`make config\` again |
43 |
Please \`make config\` again |
Lines 39-45
Link Here
|
39 |
.else |
48 |
.else |
40 |
USE_RC_SUBR+= bbackupd.sh |
49 |
USE_RC_SUBR+= bbackupd.sh |
41 |
PLIST_SUB+= CLIENT="" |
50 |
PLIST_SUB+= CLIENT="" |
42 |
ALL_TARGET+= parcels/${DISTNAME}-backup-client-FreeBSD.tgz |
51 |
ALL_TARGET+= parcels/${DISTNAME}-backup-client-${TARGETOS}.tgz |
43 |
INSTALL_TARGET+=install-backup-client |
52 |
INSTALL_TARGET+=install-backup-client |
44 |
.endif |
53 |
.endif |
45 |
|
54 |
|
Lines 48-73
Link Here
|
48 |
.else |
57 |
.else |
49 |
USE_RC_SUBR+= bbstored.sh |
58 |
USE_RC_SUBR+= bbstored.sh |
50 |
PLIST_SUB+= SERVER="" |
59 |
PLIST_SUB+= SERVER="" |
51 |
ALL_TARGET+= parcels/${DISTNAME}-backup-server-FreeBSD.tgz |
60 |
ALL_TARGET+= parcels/${DISTNAME}-backup-server-${TARGETOS}.tgz |
52 |
INSTALL_TARGET+=install-backup-server |
61 |
INSTALL_TARGET+=install-backup-server |
53 |
.endif |
62 |
.endif |
54 |
|
63 |
|
55 |
CONFLICTS= boxbackup-server-[0-9]* boxbackup-client-[0-9]* |
64 |
CONFLICTS= boxbackup-server-[0-9]* boxbackup-client-[0-9]* |
56 |
.if defined(WITHOUT_CLIENT) |
65 |
.if defined(WITHOUT_CLIENT) |
57 |
CONFLICTS= boxbackup[0-9]* |
66 |
CONFLICTS= boxbackup-client-[0-9]* |
58 |
PKGNAMESUFFIX= -server |
67 |
PKGNAMESUFFIX= -server |
59 |
.elif defined(WITHOUT_SERVER) |
68 |
.elif defined(WITHOUT_SERVER) |
60 |
CONFLICTS= boxbackup[0-9]* |
69 |
CONFLICTS= boxbackup-server-[0-9]* |
61 |
PKGNAMESUFFIX= -client |
70 |
PKGNAMESUFFIX= -client |
62 |
.endif |
71 |
.endif |
63 |
|
72 |
|
64 |
post-patch: |
73 |
post-patch: |
65 |
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/infrastructure/BoxPlatform.pm |
74 |
# Replace hard-coded /etc/box with $PREFIX/etc/box |
66 |
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/lib/common/BoxPortsAndFiles.h |
75 |
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \ |
|
|
76 |
${WRKSRC}/lib/common/BoxPortsAndFiles.h |
77 |
# Fix path to perl |
67 |
@${FIND} ${WRKSRC} -name "*.pl" -exec \ |
78 |
@${FIND} ${WRKSRC} -name "*.pl" -exec \ |
68 |
${REINPLACE_CMD} -e 's,/usr/bin/perl,${PERL},g' {} \; |
79 |
${REINPLACE_CMD} -e 's,/usr/bin/perl,${PERL},g' {} \; |
69 |
@${REINPLACE_CMD} -e 's, perl , ${PERL} ,' \ |
80 |
@${REINPLACE_CMD} -e 's,/usr/bin/perl,${PERL},g' \ |
|
|
81 |
${WRKSRC}/bin/bbackupd/bbackupd-config \ |
82 |
${WRKSRC}/bin/bbstored/bbstored-certs \ |
83 |
${WRKSRC}/bin/bbstored/bbstored-config \ |
84 |
${WRKSRC}/lib/raidfile/raidfile-config |
85 |
@${FIND} ${WRKSRC} -name "Makefile.extra" -exec \ |
86 |
${REINPLACE_CMD} -e 's,perl,${PERL},g' {} \; |
87 |
@${REINPLACE_CMD} -e 's,perl ,${PERL} ,g' \ |
88 |
${WRKSRC}/test/bbackupd/testfiles/bbackupd.conf \ |
70 |
${WRKSRC}/infrastructure/makebuildenv.pl |
89 |
${WRKSRC}/infrastructure/makebuildenv.pl |
|
|
90 |
@${REINPLACE_CMD} -e 's,"perl ,PERL_EXECUTABLE " ,g' \ |
91 |
${WRKSRC}/test/backupstorefix/testbackupstorefix.cpp |
71 |
.if !defined(WITHOUT_CLIENT) |
92 |
.if !defined(WITHOUT_CLIENT) |
72 |
@${CAT} ${FILESDIR}/pkg-message.client >> ${PKGMESSAGE} |
93 |
@${CAT} ${FILESDIR}/pkg-message.client >> ${PKGMESSAGE} |
73 |
.endif |
94 |
.endif |
Lines 78-84
Link Here
|
78 |
.if !defined(WITHOUT_SERVER) |
99 |
.if !defined(WITHOUT_SERVER) |
79 |
pre-install: |
100 |
pre-install: |
80 |
@${SETENV} PKG_PREFIX=${PREFIX} \ |
101 |
@${SETENV} PKG_PREFIX=${PREFIX} \ |
81 |
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
102 |
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
82 |
.endif |
103 |
.endif |
83 |
|
104 |
|
84 |
post-install: |
105 |
post-install: |
Lines 91-97
Link Here
|
91 |
@${CAT} ${PKGMESSAGE} |
112 |
@${CAT} ${PKGMESSAGE} |
92 |
|
113 |
|
93 |
.if defined(WITH_TESTS) |
114 |
.if defined(WITH_TESTS) |
94 |
check: |
115 |
test: |
95 |
@${ECHO_CMD} "===> Running tests" |
116 |
@${ECHO_CMD} "===> Running tests" |
96 |
@${MAKE} -C ${WRKSRC} test |
117 |
@${MAKE} -C ${WRKSRC} test |
97 |
.endif |
118 |
.endif |