aboutsummaryrefslogtreecommitdiff
path: root/misc/libhome
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-04-20 08:32:30 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-04-20 08:32:30 +0000
commit51a533fbd2ff67d4333f0a6e293e357af95ce050 (patch)
treed1580543e8c2c4592f3e9d21d0a1f73f39512ec7 /misc/libhome
parentd835d30faae0ae898ed676309003c8ccfb185dce (diff)
downloadports-51a533fbd2ff67d4333f0a6e293e357af95ce050.tar.gz
ports-51a533fbd2ff67d4333f0a6e293e357af95ce050.zip
Notes
Diffstat (limited to 'misc/libhome')
-rw-r--r--misc/libhome/Makefile59
-rw-r--r--misc/libhome/distinfo3
-rw-r--r--misc/libhome/pkg-plist4
3 files changed, 56 insertions, 10 deletions
diff --git a/misc/libhome/Makefile b/misc/libhome/Makefile
index 118c44b20c21..d56fcf58b593 100644
--- a/misc/libhome/Makefile
+++ b/misc/libhome/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= libhome
-PORTVERSION= 0.7.1
+PORTVERSION= 0.8
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pll
@@ -14,21 +14,62 @@ MASTER_SITE_SUBDIR= pll
MAINTAINER= kiwi@oav.net
COMMENT= Library providing a getpwname() emulation
-LIB_DEPENDS+= ldap:${PORTSDIR}/net/openldap21-client \
- mysqlclient:${PORTSDIR}/databases/mysql323-client \
- db3.3:${PORTSDIR}/databases/db3
+OPTIONS+= LDAP "Support for LDAP queries" on
+OPTIONS+= MYSQL "Support for MySQL queries" on
+OPTIONS+= DB3 "Support for DB3" on
+OPTIONS+= DB4 "Support for DB4" off
+OPTIONS+= PAM "Support for PAM (Experimental)" off
+
+HAS_CONFIGURE= yes
+INSTALLS_SHLIB= yes
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_DB3) && defined(WITH_DB4)
+.error You cannot use DB3 and DB4 in the same time.
+.endif
+
+.if !defined(WITHOUT_LDAP)
+USE_OPENLDAP= yes
+CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}/include
+.else
+CONFIGURE_ARGS+= --without-ldap
+.endif
+
+.if !defined(WITHOUT_MYSQL)
+USE_MYSQL= yes
+CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}/include/mysql
+.else
+CONFIGURE_ARGS+= --without-mysql
+.endif
+
+.if !defined(WITHOUT_DB3)
+LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3
+CONFIGURE_ARGS+= --with-db3=${LOCALBASE}/include/db3 --without-db4
+.else
+CONFIGURE_ARGS+= --without-db3
+.endif
+
+.if defined(WITH_DB4)
+LIB_DEPENDS+= db4:${PORTSDIR}/databases/db4
+CONFIGURE_ARGS+= --with-db4=${LOCALBASE}/include/db4 --without-db3
+.else
+CONFIGURE_ARGS+= --without-db4
+.endif
+
+.if defined(WITH_PAM)
+CONFIGURE_ARGS+= --with-pam
+.else
+CONFIGURE_ARGS+= --without-pam
+.endif
GNU_CONFIGURE= YES
-CONFIGURE_ARGS= --with-db3=${LOCALBASE}/include/db3 --without-db4 \
- --with-ldap=${LOCALBASE}/include \
- --with-mysql=${LOCALBASE}/include/mysql
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" prefix="${PREFIX}" home_finger
MAN5= home.conf.5
post-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/home_finger ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/home.conf ${PREFIX}/etc/home.conf.dist
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/misc/libhome/distinfo b/misc/libhome/distinfo
index 7ab86151b0a8..b7cf84fed6df 100644
--- a/misc/libhome/distinfo
+++ b/misc/libhome/distinfo
@@ -1,2 +1,3 @@
-MD5 (libhome-0.7.1.tar.gz) = 8047114e6795758c95be8bd2a007fe3c
+MD5 (libhome-0.8.tar.gz) = e1f17acbceb22400695a8aec80a8fe16
+SIZE (libhome-0.8.tar.gz) = 254400
SIZE (libhome-0.7.1.tar.gz) = 75288
diff --git a/misc/libhome/pkg-plist b/misc/libhome/pkg-plist
index e1ffe8e7ebf3..5910086f3950 100644
--- a/misc/libhome/pkg-plist
+++ b/misc/libhome/pkg-plist
@@ -7,3 +7,7 @@ include/home/hpwd.h
include/home/pwd.h
@dirrm include/home
lib/libhome.a
+lib/libhome.so
+lib/libhome.so.1
+lib/libhome-preload.so
+lib/libhome-preload.so.1