mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
6cfaa0e6e2
for UNIX. It is a spinoff of the Samba 4 project, the upcoming version of the Samba software suite and will also be available as part of the Samba suite as soon as Samba 4 is released. WWW: http://enterprisesamba.org/index.php?id=88 PR: ports/95774 Submitted by: Timur I. Bakeyev <timur@gnu.org>
68 lines
1.9 KiB
Makefile
68 lines
1.9 KiB
Makefile
# New ports collection makefile for: samba4wins
|
|
# Date created: 11th Apr 2006
|
|
# Whom: Timur I. Bakeyev <timur@gnu.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= samba4wins
|
|
PORTVERSION= 1.0.3.r1
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://ftp.sernet.de/pub/samba4WINS/debian/pool/
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION:S/.r/-/}
|
|
|
|
MAINTAINER= timur@gnu.org
|
|
COMMENT= A full featured replicating WINS server for UNIX
|
|
|
|
CONFLICTS= ja-samba-2.* ja-samba-4.* samba-2.* samba-4.* sharity-light-1.*
|
|
|
|
USE_PERL5= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}/source
|
|
|
|
# directories
|
|
VARDIR= ${DESTDIR}/var
|
|
S4W_DATADIR= ${PREFIX}/share/${PORTNAME}
|
|
S4W_LOGDIR= ${VARDIR}/log/${PORTNAME}
|
|
S4W_RUNDIR= ${VARDIR}/run
|
|
S4W_LOCKDIR= ${VARDIR}/db/${PORTNAME}
|
|
S4W_PRIVATE= ${S4W_LOCKDIR}/private
|
|
S4W_CONFDIR= ${PREFIX}/etc
|
|
S4W_LIBDIR= ${PREFIX}/lib/${PORTNAME}
|
|
S4W_CONFIG= ${S4W_CONFDIR}/samba4wins.conf
|
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
CONFIGURE_ARGS+= --exec-prefix=${PREFIX} \
|
|
--datadir=${S4W_DATADIR} \
|
|
--libdir=${S4W_LIBDIR} \
|
|
--localstatedir=${VARDIR} \
|
|
--with-privatedir=${S4W_PRIVATE} \
|
|
--with-lockdir=${S4W_LOCKDIR} \
|
|
--with-piddir=${S4W_RUNDIR} \
|
|
--with-logfilebase=${S4W_LOGDIR}
|
|
|
|
CONFIGURE_ARGS+= --disable-reg-gconf --disable-socket-wrapper \
|
|
--with-readline=/usr --with-included-popt \
|
|
--with-libiconv=${LOCALBASE} --without-sqlite3 \
|
|
--without-pthreads --without-python
|
|
|
|
USE_RC_SUBR= smbd4wins.sh
|
|
SUB_LIST+= S4W_RUNDIR=${S4W_RUNDIR}
|
|
|
|
PLIST_SUB+= S4W_LOGDIR=${S4W_LOGDIR} \
|
|
S4W_LOCKDIR=${S4W_LOCKDIR}
|
|
|
|
post-install:
|
|
@${MKDIR} ${S4W_CONFDIR}
|
|
${INSTALL_DATA} ${FILESDIR}/samba4wins.conf.sample ${S4W_CONFDIR}
|
|
@${MKDIR} ${DOCSDIR}
|
|
.if !defined(NOPORTDOCS)
|
|
.for d in HOWTO.txt NEWS.txt README.txt TODO.txt
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/debian/${PORTNAME}-*-${d} ${DOCSDIR}/${d}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|