2003-09-30 20:00:49 +02:00
|
|
|
# New ports collection makefile for: libhome
|
|
|
|
# Date created: Fri Aug 14 2003
|
|
|
|
# Whom: Xavier Beaudouin <kiwi@oav.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libhome
|
2009-05-22 04:36:28 +02:00
|
|
|
PORTVERSION= 0.10.2
|
2011-03-19 14:15:34 +01:00
|
|
|
PORTREVISION= 2
|
2003-09-30 20:00:49 +02:00
|
|
|
CATEGORIES= misc
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= ftp://ftp.oav.net/pll/ SF/pll/${PORTNAME}/${PORTVERSION}
|
2003-09-30 20:00:49 +02:00
|
|
|
|
|
|
|
MAINTAINER= kiwi@oav.net
|
2003-10-26 22:45:46 +01:00
|
|
|
COMMENT= Library providing a getpwname() emulation
|
2003-09-30 20:00:49 +02:00
|
|
|
|
2004-04-20 10:32:30 +02:00
|
|
|
OPTIONS+= LDAP "Support for LDAP queries" on
|
|
|
|
OPTIONS+= MYSQL "Support for MySQL queries" on
|
2006-12-19 07:54:42 +01:00
|
|
|
OPTIONS+= BDB "Support for Berkeley DB" on
|
2004-04-20 10:32:30 +02:00
|
|
|
OPTIONS+= PAM "Support for PAM (Experimental)" off
|
2005-05-16 04:49:31 +02:00
|
|
|
OPTIONS+= PGSQL "Support for PostgreSQL (Experimental)" off
|
2004-04-20 10:32:30 +02:00
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-03-27 18:29:28 +02:00
|
|
|
USE_LDCONFIG= yes
|
2004-04-20 10:32:30 +02:00
|
|
|
|
2009-05-22 04:36:28 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-12-19 07:54:42 +01:00
|
|
|
.if defined(LIBHOME_WITH_BDB_VER)
|
|
|
|
WITH_BDB_VER= ${LIBHOME_WITH_BDB_VER}
|
2004-04-20 10:32:30 +02:00
|
|
|
.endif
|
|
|
|
|
2005-08-30 05:25:29 +02:00
|
|
|
CONFIGURE_ARGS+= --with-proxy --with-nss
|
|
|
|
|
2004-04-20 10:32:30 +02:00
|
|
|
.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
|
|
|
|
|
2006-12-19 07:54:42 +01:00
|
|
|
.if defined(WITH_DB3) || defined(WITH_DB4)
|
|
|
|
WITH_BDB= yes
|
|
|
|
OBSOLETE_BDB_VAR= WITH_DB3 WITH_DB4
|
|
|
|
IGNORE= Use 'make config' to select Berkeley DB.
|
2004-04-20 10:32:30 +02:00
|
|
|
.endif
|
|
|
|
|
2006-12-19 07:54:42 +01:00
|
|
|
.if defined(WITH_BDB)
|
|
|
|
USE_BDB= yes
|
|
|
|
INVALID_BDB_VER= 2
|
|
|
|
. if defined(WITH_BDB_VER) && ${WITH_BDB_VER} == 3
|
|
|
|
CONFIGURE_ARGS+= --with-db3=${BDB_INCLUDE_DIR} --without-db4
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --without-db3 --with-db4=${BDB_INCLUDE_DIR}
|
|
|
|
. endif
|
|
|
|
CONFIGURE_ARGS+= --with-db-libdir=${BDB_LIB_DIR}
|
2004-04-20 10:32:30 +02:00
|
|
|
.else
|
2006-12-19 07:54:42 +01:00
|
|
|
CONFIGURE_ARGS+= --without-db3 --without-db4
|
2004-04-20 10:32:30 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PAM)
|
|
|
|
CONFIGURE_ARGS+= --with-pam
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pam
|
|
|
|
.endif
|
2003-09-30 20:00:49 +02:00
|
|
|
|
2005-05-16 04:49:31 +02:00
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
|
|
USE_PGSQL= YES
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pgsql
|
|
|
|
.endif
|
|
|
|
|
2003-09-30 20:00:49 +02:00
|
|
|
MAN5= home.conf.5
|
2005-08-30 05:25:29 +02:00
|
|
|
MAN8= home_proxy.8
|
2003-09-30 20:00:49 +02:00
|
|
|
|
2006-12-19 07:54:42 +01:00
|
|
|
post-patch:
|
2007-03-27 18:29:28 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/ltconfig ${WRKSRC}/configure
|
2006-12-19 07:54:42 +01:00
|
|
|
.if defined(WITH_BDB)
|
|
|
|
@${REINPLACE_CMD} -e 's;db-4.3 db-4.2;${BDB_LIB_NAME};g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
.endif
|
|
|
|
|
2003-10-26 22:45:46 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/home.conf ${PREFIX}/etc/home.conf.dist
|
2005-08-30 05:25:29 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/rc/freebsd/home_proxy.sh ${PREFIX}/etc/rc.d/home_proxy.sh
|
2003-10-26 22:45:46 +01:00
|
|
|
|
2004-04-20 10:32:30 +02:00
|
|
|
.include <bsd.port.post.mk>
|