aboutsummaryrefslogtreecommitdiff
path: root/www/mnogosearch
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2014-04-25 08:13:41 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2014-04-25 08:13:41 +0000
commit097ed1b7db1c860392d92fc1f9800229c228ac36 (patch)
treee73aea8515e237ba6cca4ec5000acda50baad321 /www/mnogosearch
parent4ef7984bb0e661d94918c3d58c3fff9baf2af51d (diff)
downloadports-097ed1b7db1c860392d92fc1f9800229c228ac36.tar.gz
ports-097ed1b7db1c860392d92fc1f9800229c228ac36.zip
Notes
Diffstat (limited to 'www/mnogosearch')
-rw-r--r--www/mnogosearch/Makefile34
-rw-r--r--www/mnogosearch/pkg-install19
-rw-r--r--www/mnogosearch/pkg-plist3
3 files changed, 8 insertions, 48 deletions
diff --git a/www/mnogosearch/Makefile b/www/mnogosearch/Makefile
index a59185839fff..0871e15c3a1a 100644
--- a/www/mnogosearch/Makefile
+++ b/www/mnogosearch/Makefile
@@ -3,7 +3,7 @@
PORTNAME= mnogosearch
PORTVERSION= 3.4.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www databases
MASTER_SITES= http://www.mnogosearch.org/Download/ \
http://www.bayofrum.net/dist/${PORTNAME}/
@@ -16,7 +16,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
CONFLICTS= dpsearch-[0-9]* udmsearch-[0-9]* mguesser-[0-9]*
-OPTIONS_DEFINE= THREADS SSL ASIAN SYSLOG
+OPTIONS_DEFINE= DOCS EXAMPLES THREADS SSL ASIAN SYSLOG
OPTIONS_MULTI= database
OPTIONS_MULTI_database= PGSQL MSQL MYSQL SQLITE2 SQLITE3
@@ -28,19 +28,13 @@ SYSLOG_DESC= Send logs to syslog
SQLITE2_DESC= Use SQLite 2.x
SQLITE3_DESC= Use SQLite 3.x
-USES= gmake
+GNU_CONFIGURE= yes
+INSTALL_TARGET= install-strip
+USES= gmake libtool
USE_LDCONFIG= yes
-USE_GNOME= lthack
-USE_AUTOTOOLS= libtool
-CONFIGURE_ARGS+=--enable-shared \
- --sysconfdir=${ETCDIR} \
+CONFIGURE_ARGS= --sysconfdir=${ETCDIR} \
--localstatedir=/var/mnogosearch \
--datadir=${DATADIR}
-CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}"
-MAKE_ENV+= MKDIRPROG="${MKDIR}"
-
-PLIST_SUB+= SHLIB_VER=${SHLIB_VER}
-SHLIB_VER= 1
SUB_FILES+= pkg-message
@@ -52,10 +46,8 @@ USE_OPENSSL= yes
.if ${PORT_OPTIONS:MTHREADS}
CONFIGURE_ARGS+= --enable-pthreads
-CONFIGURE_ENV+= LIBS="-pthread"
.else
CONFIGURE_ARGS+= --disable-pthreads
-CFLAGS+= -DCONSOLE
.endif
.if ${PORT_OPTIONS:MSSL}
@@ -76,7 +68,7 @@ CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}
.endif
.if ${PORT_OPTIONS:MMSQL}
-LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql
+LIB_DEPENDS+= libmsql.so:${PORTSDIR}/databases/msql
CONFIGURE_ARGS+= --with-msql=${LOCALBASE}
.endif
@@ -100,7 +92,7 @@ PORTDOCS= ChangeLog INSTALL README.html
PORTEXAMPLES= README *.conf
post-patch:
-.if !defined (NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's#$$(DESTDIR)$$(prefix)/doc#${DOCSDIR}#' \
${WRKSRC}/Makefile.in ${WRKSRC}/doc/Makefile.in
.else
@@ -109,22 +101,12 @@ post-patch:
${WRKSRC}/Makefile.in
.endif
-pre-install:
- @${MKDIR} ${STAGEDIR}${DATADIR}
-
post-install:
-.for l in charset search
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmnogo$l-${PORTVERSION:R}.so
-.endfor
- ${LN} -sf libmnogosearch.so \
- ${STAGEDIR}${PREFIX}/lib/libmnogosearch-${PORTVERSION:R}.so.${SHLIB_VER}
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS:NREADME.html}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/samples/* ${STAGEDIR}${EXAMPLESDIR}/
- @${ECHO}
- @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/www/mnogosearch/pkg-install b/www/mnogosearch/pkg-install
deleted file mode 100644
index 320f238be6ff..000000000000
--- a/www/mnogosearch/pkg-install
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-case $2 in
- PRE-INSTALL)
- ;;
- POST-INSTALL)
- mkdir -m 755 /var/mnogosearch
- mkdir -m 700 /var/mnogosearch/cache
- mkdir -m 755 /var/mnogosearch/raw
- mkdir -m 755 /var/mnogosearch/splitter
- mkdir -m 755 /var/mnogosearch/tree
- chown -R www:www /var/mnogosearch
- ;;
- *)
- echo "Unexpected Argument $2!!!"
- exit 1
- ;;
-esac
-exit 0
diff --git a/www/mnogosearch/pkg-plist b/www/mnogosearch/pkg-plist
index 54e0c18911cc..ffa8cd7b103c 100644
--- a/www/mnogosearch/pkg-plist
+++ b/www/mnogosearch/pkg-plist
@@ -72,12 +72,9 @@ include/udm_xmalloc.h
include/udmsearch.h
lib/libmnogocharset-3.4.so
lib/libmnogocharset.a
-lib/libmnogocharset.la
lib/libmnogocharset.so
lib/libmnogosearch-3.4.so
-lib/libmnogosearch-3.4.so.%%SHLIB_VER%%
lib/libmnogosearch.a
-lib/libmnogosearch.la
lib/libmnogosearch.so
man/man1/indexer.1.gz
man/man5/indexer.conf.5.gz