aboutsummaryrefslogtreecommitdiffstats
path: root/mail/perdition
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2003-07-31 14:40:01 +0800
committerdaichi <daichi@FreeBSD.org>2003-07-31 14:40:01 +0800
commitcf1b5c6717ba044535d5803fd39cf7fb123fd993 (patch)
tree15319c06350df8daa47e03128e085528e6fe87c0 /mail/perdition
parentdd22b62008d464fb008d21e240207d9ff0959a96 (diff)
downloadfreebsd-ports-gnome-cf1b5c6717ba044535d5803fd39cf7fb123fd993.tar.gz
freebsd-ports-gnome-cf1b5c6717ba044535d5803fd39cf7fb123fd993.tar.zst
freebsd-ports-gnome-cf1b5c6717ba044535d5803fd39cf7fb123fd993.zip
update mail/perdition: update mysql hack to "lastest revision".
PR: 55044 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org> (maintainer) Pointed out by: kirill
Diffstat (limited to 'mail/perdition')
-rw-r--r--mail/perdition/Makefile38
-rw-r--r--mail/perdition/pkg-plist4
2 files changed, 29 insertions, 13 deletions
diff --git a/mail/perdition/Makefile b/mail/perdition/Makefile
index d19b508ec79a..5a76f89810aa 100644
--- a/mail/perdition/Makefile
+++ b/mail/perdition/Makefile
@@ -7,6 +7,7 @@
PORTNAME= perdition
PORTVERSION= 1.11
+PORTREVISION= 1
CATEGORIES= mail net security
MASTER_SITES= http://www.vergenet.net/linux/perdition/download/${PORTVERSION}/
@@ -25,7 +26,7 @@ MLINK= perdition.8 - perdition.pop3s.8 \
- perdition.imap4.8 - perdition.imap4s.8 \
- perdition.imaps.8 - perdition.pop3.8
-MANCOMPRESSED= no
+MANCOMPRESSED= no
USE_LIBTOOL= YES
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
@@ -34,14 +35,6 @@ MAKE_ENV+= DOCSDIR=${DOCSDIR}
INSTALLS_SHLIB= yes
-# Dirty hack :)
-MYSQL323_LIBVER=10
-MYSQL40_LIBVER= 12
-MYSQL41_LIBVER= 14
-
-MYSQL_VER?= 323
-LDAP_VER?= 21
-
# Available knobs:
# WITHOUT_SSL: Disable OpenSSL support
# WITHOUT_POSIX_REGEX: Disable native regex support
@@ -49,10 +42,35 @@ LDAP_VER?= 21
# WITH_NIS: Enable NIS database backend
# WITH_GDBM: Enable gdbm database backend
# WITH_MYSQL: Enable MySQL database backend
+# WITH_MYSQL_VER:
+# - 323 use MySQL 3.23.x
+# - 40 use MySQL 4.0.x
+# - 41 use MySQL 4.1.x
# WITH_PGSQL: Enable PostgreSQL database backend
# WITH_OPENLDAP: Enable OpenLDAP database backend
# WITH_ODBC: Enable ODBC database backend
+LDAP_VER?= 21
+
+# MySQL deps hack (revision 2)
+MYSQL323_LIBVER=10
+MYSQL40_LIBVER= 12
+MYSQL41_LIBVER= 14
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MYSQL_VER)
+MYSQL_VER= ${WITH_MYSQL_VER}
+.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL_323_LIBVER})
+MYSQL_VER= 323
+.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL40_LIBVER})
+MYSQL_VER= 40
+.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL41_LIBVER})
+MYSQL_VER= 41
+.else
+MYSQL_VER= 40
+.endif
+
.if !defined(WITHOUT_SSL)
CONFIGURE_ARGS+= --enable-ssl
USE_OPENSSL= yes
@@ -146,4 +164,4 @@ post-install:
@${ECHO_MSG} "/********************************************************/"
@${ECHO_MSG} ""
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/mail/perdition/pkg-plist b/mail/perdition/pkg-plist
index f95ddbd5541d..08f5547566c0 100644
--- a/mail/perdition/pkg-plist
+++ b/mail/perdition/pkg-plist
@@ -52,8 +52,6 @@ sbin/perdition.pop3s
sbin/perdition.imap4
sbin/perdition.imap4s
sbin/perdition.imaps
-share/doc/perdition/perdition-pam.sample
+%%DOCSDIR%%/perdition-pam.sample
@unexec rmdir %D/etc/perdition 2>/dev/null || echo "If you are permanently removing this port, you should do a ``rm -rf ${PKG_PREFIX}/etc/perdition`` to remove any files left." | fmt
@dirrm share/doc/perdition
-@exec /sbin/ldconfig -m %D/lib
-@unexec /sbin/ldconfig -R %D/lib