Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= oops |
8 |
PORTNAME= oops |
9 |
PORTVERSION= ${OOPSVERSION} |
9 |
PORTVERSION= ${OOPSVERSION} |
10 |
PORTREVISION= 2 |
10 |
PORTREVISION= 3 |
11 |
CATEGORIES= www |
11 |
CATEGORIES= www |
12 |
MASTER_SITES= http://oops-cache.org/ |
12 |
MASTER_SITES= http://oops-cache.org/ |
13 |
DISTNAME= ${PORTNAME}-${OOPSVERSION} |
13 |
DISTNAME= ${PORTNAME}-${OOPSVERSION} |
Lines 36-59
Link Here
|
36 |
OOPSVAR= /var/run/oops |
36 |
OOPSVAR= /var/run/oops |
37 |
OOPSLOG= /var/log/oops |
37 |
OOPSLOG= /var/log/oops |
38 |
|
38 |
|
39 |
SCRIPTS_ENV+= WRKDIRPREFIX="${WRKDIRPREFIX}" \ |
|
|
40 |
TOUCH="${TOUCH}" \ |
41 |
MKDIR="${MKDIR}" |
42 |
|
43 |
USE_RC_SUBR= YES |
39 |
USE_RC_SUBR= YES |
44 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
40 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
45 |
SUB_FILES= pkg-message |
41 |
SUB_FILES= pkg-message |
46 |
|
42 |
|
47 |
.if defined(BATCH) |
43 |
OPTIONS= GIGABASE "GigaBase storage" on \ |
|
|
44 |
DB4 "Berkeley DB v4 storage" off \ |
45 |
MYSQL "MySQL auth support" off \ |
46 |
PGSQL "PostgreSQL auth support" off \ |
47 |
PCRE "PCRE support" off |
48 |
|
49 |
.include <bsd.port.pre.mk> |
50 |
|
51 |
.if !defined(WITHOUT_GIGABASE) |
52 |
.if defined (WITH_DB4) |
53 |
BROKEN= "Only one DB storage can be used (First)" |
54 |
.endif |
48 |
LIB_DEPENDS+= gigabase_r.2:${PORTSDIR}/databases/gigabase |
55 |
LIB_DEPENDS+= gigabase_r.2:${PORTSDIR}/databases/gigabase |
49 |
CONFIGURE_ARGS+= --without-DB |
56 |
CONFIGURE_ARGS+= --without-DB |
50 |
.endif |
57 |
.endif |
51 |
|
58 |
|
52 |
pre-fetch: |
59 |
.if defined(WITH_DB4) |
53 |
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.oops |
60 |
.if defined(WITHOUT_GIGABASE) |
|
|
61 |
LIB_DEPENDS+= db4.0:${PORTSDIR}/databases/db4 |
62 |
CONFIGURE_ARGS+= --without-GB |
63 |
.else |
64 |
BROKEN= "Only one DB storage can be used" |
65 |
.endif |
66 |
.endif |
54 |
|
67 |
|
55 |
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) |
68 |
.if defined(WITH_MYSQL) |
56 |
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" |
69 |
USE_MYSQL= YES |
|
|
70 |
CONFIGURE_ARGS+= --with-MYSQL=${PREFIX} |
71 |
.endif |
72 |
|
73 |
.if defined(WITH_PGSQL) |
74 |
USE_PGSQL= YES |
75 |
CONFIGURE_ARGS+= --with-PGSQL=${PREFIX}/pgsql |
76 |
.endif |
77 |
|
78 |
.if defined(WITH_PCRE) |
79 |
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre |
80 |
CONFIGURE_ARGS+= --with-regexp=pcre |
57 |
.endif |
81 |
.endif |
58 |
|
82 |
|
59 |
pre-configure: |
83 |
pre-configure: |
Lines 66-73
Link Here
|
66 |
pre-install: |
90 |
pre-install: |
67 |
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
91 |
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
68 |
|
92 |
|
69 |
.include <bsd.port.pre.mk> |
|
|
70 |
|
71 |
post-install: |
93 |
post-install: |
72 |
.if !defined(NOPORTDOCS) |
94 |
.if !defined(NOPORTDOCS) |
73 |
@${INSTALL_MAN} ${WRKSRC}/doc/oops.8 ${PREFIX}/man/man8 |
95 |
@${INSTALL_MAN} ${WRKSRC}/doc/oops.8 ${PREFIX}/man/man8 |