- Update to 0.8

- Introduce OPTIONS

PR:		ports/65765
Submitted by:	Xavier Beaudouin <kiwi@oav.net> (maintainer)
This commit is contained in:
Pav Lucistnik 2004-04-20 08:32:30 +00:00
parent d835d30faa
commit 51a533fbd2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107680
3 changed files with 56 additions and 10 deletions

View file

@ -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>

View file

@ -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

View file

@ -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