pkgsrc/net/netatalk/Makefile

100 lines
3.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.88 2012/07/25 11:33:49 fhajny Exp $
DISTNAME= netatalk-2.2.1
PKGREVISION= 5
2002-05-25 15:08:39 +02:00
CATEGORIES= net print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netatalk/}
EXTRACT_SUFX= .tar.bz2
#PATCHFILES= patch-adv1tov2.c
PATCH_SITES= http://svn.macosforge.org/repository/macports/trunk/dports/net/netatalk/files/ \
http://mirror.lug.udel.edu/pub/macports/trunk/dports/net/netatalk/files/
2003-07-18 00:50:55 +02:00
MAINTAINER= markd@NetBSD.org
HOMEPAGE= http://netatalk.sourceforge.net/
2002-05-25 15:08:39 +02:00
COMMENT= Netatalk appletalk file and print services
Update netatalk package to 2.0.4. pkgsrc changs: * Add LICENSE. * Fix some pkglint warnings. * cjk patch was incorporated and cjk PKG_OPTION was removed. Changes in 2.0.4 ================ * REM: remove timeout * NEW: afpd: DHX2 uams using GNU libgcrypt. * NEW: afpd: volume options 'illegalseq', 'perm' and 'invisibledots' 'ilegalseq' encode illegal sequence in filename asis, ex "\217-", which is not a valid SHIFT-JIS char, is encoded as U\217 -. 'perm' value OR with the client requested permissions. (help with OSX 10.5 strange permissions). Make dot files visible by default with 'usedots', use 'invisibledots' for keeping the old behavior, ie for OS9 (OSX hide dot files on its own). * NEW: afpd: volume options allow_hosts/denied hosts * NEW: afpd: volume options dperm/fperm default directory and file permissions or with server requests. * NEW: afpd: afpd.conf, allow line continuation with \ * NEW: afpd: AppleVolumes.default allow line continuation with \ * NEW: afpd: Mac greek encoding. * NEW: afpd: CJK encoding. * UPD: afpd: Default UAMs: DHX + DHX2 * FIX: afpd: return the right error in createfile and copyfile if the disk is full. * FIX: afpd: resolveid return the same error code than OSX if it's a directory * FIX: afpd: server name check, test for the whole loopback subnet not only 127.0.0.1. * UPD: afpd: limit comments size to 128 bytes, (workaround for Adobe CS2 bug). * UPD: afpd: no more daemon icon. * UPD: usedots, return an invalide name only for .Applexxx files used by netatalk not all files starting with .apple. * UPD: cnid: increase the number of cnid_dbd slots to 512. * FIX: cnid: dbd detach the daemon from the control terminal. * UPD: cnid: never ending Berkeley API changes... * UPD: cnid: dbd add a timeout when reading data from afpd client. * UPD: cnid: Don't wait five second after the first error when speaking to the dbd backend. * FIX: papd: vars use % not $ * FIX: papd: quote chars in popen variables expansion. security fix. * FIX: papd: papd -d didn't write to stderr. * FIX: papd: ps comments don't always use () * FIX: many compilation errors (solaris, AFS, Tru64, xfs quota...).
2009-06-09 15:57:56 +02:00
LICENSE= gnu-gpl-v2
2002-05-25 15:08:39 +02:00
2009-02-12 07:44:55 +01:00
PKG_DESTDIR_SUPPORT= user-destdir
BDB_ACCEPTED= db4 db5
USE_LIBTOOL= yes
USE_OLD_DES_API= yes
USE_TOOLS+= gmake perl:run
GNU_CONFIGURE= yes
BUILDLINK_TRANSFORM+= l:db48:${BDB_TYPE}
PKG_SYSCONFSUBDIR= netatalk
EGDIR= ${PREFIX}/share/examples/netatalk
CONF_FILES= ${EGDIR}/AppleVolumes.default ${PKG_SYSCONFDIR}/AppleVolumes.default
CONF_FILES+= ${EGDIR}/AppleVolumes.system ${PKG_SYSCONFDIR}/AppleVolumes.system
CONF_FILES+= ${EGDIR}/afpd.conf ${PKG_SYSCONFDIR}/afpd.conf
CONF_FILES+= ${EGDIR}/atalkd.conf ${PKG_SYSCONFDIR}/atalkd.conf
CONF_FILES+= ${EGDIR}/netatalk.conf ${PKG_SYSCONFDIR}/netatalk.conf
CONF_FILES+= ${EGDIR}/papd.conf ${PKG_SYSCONFDIR}/papd.conf
2002-05-25 15:08:39 +02:00
CONFLICTS= netatalk-asun-[0-9]* netatalk-umich-[0-9]*
.include "../../mk/bsd.prefs.mk"
2002-05-25 15:08:39 +02:00
BUILD_DEFS+= VARBASE
CONFIGURE_ARGS+= --enable-netbsd
CONFIGURE_ARGS+= --enable-overwrite
CONFIGURE_ARGS+= --enable-timelord
CONFIGURE_ARGS+= --enable-ddp
CONFIGURE_ARGS+= --enable-quota
CONFIGURE_ARGS+= --libexecdir=${PREFIX}/libexec/netatalk
CONFIGURE_ARGS+= --sbindir=${PREFIX}/libexec/netatalk
CONFIGURE_ARGS+= --with-pkgconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-message-dir=${PKG_SYSCONFDIR}/msg
CONFIGURE_ARGS+= --localstatedir=${VARBASE}/netatalk
CONFIGURE_ARGS+= --with-uams-path=${PREFIX}/libexec/netatalk/uams
CONFIGURE_ARGS+= --with-bdb=${BDBBASE}
CONFIGURE_ARGS+= --with-ssl-dir=${BUILDLINK_PREFIX.openssl}
CONFIGURE_ARGS+= --with-ldap=no
CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH}
MAKE_DIRS+= ${PKG_SYSCONFDIR}/msg
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= etc/psf/etc2ps.sh distrib/initscripts/Makefile.in
SUBST_SED.paths= -e "s,^\\(DVIPS=\\)\\(/usr/local/tex\\)\\(/bin\\),\\1${PREFIX}\\3,"
PLIST_VARS+= rcd
.if ${OPSYS} == "NetBSD"
RCD_SCRIPTS= afpd atalkd papd timelord cnid_metad
. for f in ${RCD_SCRIPTS}
RCD_SCRIPT_SRC.${f}= ${WRKSRC}/distrib/initscripts/${f}
. endfor
PLIST.rcd= yes
.endif
PLIST_VARS+= ea
.if ${OPSYS} == "SunOS" || ${OPSYS} == "DragonFly"
PLIST.ea= yes
.endif
PLIST_VARS+= acl
.if ${OPSYS} == "SunOS" || ${OPSYS} == "HPUX" || ${OPSYS} == "IRIX" || \
${OPSYS} == "AIX" || ${OPSYS} == "OSF1" || ${OPSYS} == "Linux"
PLIST.acl= yes
2012-06-13 14:38:35 +02:00
CONF_FILES+= ${EGDIR}/afp_ldap.conf ${PKG_SYSCONFDIR}/afp_ldap.conf
.endif
.include "options.mk"
2009-02-12 07:44:55 +01:00
INSTALLATION_DIRS= libexec/psffilters
.if !empty(PKG_OPTIONS:Mpam)
post-install:
${INSTALL_DATA} ${WRKSRC}/config/pam/netatalk.pam ${DESTDIR}${EGDIR}
.endif
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"