diff options
author | christos <christos@pkgsrc.org> | 2016-11-07 00:45:30 +0000 |
---|---|---|
committer | christos <christos@pkgsrc.org> | 2016-11-07 00:45:30 +0000 |
commit | 321e81b0dd87cd2b3dec9075257f395d3a73e4c9 (patch) | |
tree | 49fbee4bc2236b4235881411432acea603e9f9e8 /net | |
parent | 61567194547f91d1c14d46421bedcd06d79bff67 (diff) | |
download | pkgsrc-321e81b0dd87cd2b3dec9075257f395d3a73e4c9.tar.gz |
new files.
Diffstat (limited to 'net')
-rw-r--r-- | net/netatalk3/DESCR | 8 | ||||
-rw-r--r-- | net/netatalk3/MESSAGE | 15 | ||||
-rw-r--r-- | net/netatalk3/MESSAGE.pam | 8 | ||||
-rw-r--r-- | net/netatalk3/Makefile | 96 | ||||
-rw-r--r-- | net/netatalk3/PLIST | 74 | ||||
-rw-r--r-- | net/netatalk3/distinfo | 20 | ||||
-rw-r--r-- | net/netatalk3/options.mk | 58 |
7 files changed, 279 insertions, 0 deletions
diff --git a/net/netatalk3/DESCR b/net/netatalk3/DESCR new file mode 100644 index 00000000000..2d28c181a81 --- /dev/null +++ b/net/netatalk3/DESCR @@ -0,0 +1,8 @@ +Netatalk 3 is a freely-available implementation of the Apple +Filesharing Protocol Suite (AFP) over TCP/IP. + +Using Netatalk's AFP 3.1 compliant file-server leads to significantly +higher transmissions speeds compared with Macs accessing a server via +SMB or NFS, while providing clients with the best user experience (full +support for Macintosh metadata, flawlessly supporting mixed +environments of classic MacOS and MacOS X clients). diff --git a/net/netatalk3/MESSAGE b/net/netatalk3/MESSAGE new file mode 100644 index 00000000000..050ac4bbab8 --- /dev/null +++ b/net/netatalk3/MESSAGE @@ -0,0 +1,15 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1 2016/11/07 00:45:30 christos Exp $ + +For users migrating from Netatalk 2.x, version 3.x comes with +substantial changes, like an all-new config file format, and the loss +of AppleTalk (ddp) support. You are advised to familiarize yourself +with the changes in advance; use +<http://netatalk.sourceforge.net/3.0/htmldocs/upgrade.html> as a +starting point. + +In addition, 3.x appears to only work reliably with the Berkeley +Database v5, so you either have to manually upgrade the existing +CNID database(s), or discard them. + +=========================================================================== diff --git a/net/netatalk3/MESSAGE.pam b/net/netatalk3/MESSAGE.pam new file mode 100644 index 00000000000..8e7edd88b6a --- /dev/null +++ b/net/netatalk3/MESSAGE.pam @@ -0,0 +1,8 @@ +=========================================================================== +$NetBSD: MESSAGE.pam,v 1.1 2016/11/07 00:45:30 christos Exp $ + +A netatalk PAM configuration file needs to be installed in the pam.d +directory. An example file can be found at +${PREFIX}/share/examples/netatalk/netatalk.pam + +=========================================================================== diff --git a/net/netatalk3/Makefile b/net/netatalk3/Makefile new file mode 100644 index 00000000000..86adcd2fbdb --- /dev/null +++ b/net/netatalk3/Makefile @@ -0,0 +1,96 @@ +# $NetBSD: Makefile,v 1.1 2016/11/07 00:45:30 christos Exp $ + +DISTNAME= netatalk-3.1.7 +PKGNAME= ${DISTNAME:C/-/3-/} +#PKGREVISION= 7 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netatalk/} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= hauke@NetBSD.org +HOMEPAGE= http://netatalk.sourceforge.net/ +COMMENT= Netatalk AFP file services +LICENSE= gnu-gpl-v2 + +USE_LIBTOOL= yes +USE_OLD_DES_API= yes +USE_TOOLS+= gmake perl:run +GNU_CONFIGURE= yes +PKG_CONFIG= yes + +PKG_SYSCONFSUBDIR= netatalk + +EGDIR= ${PREFIX}/share/examples/netatalk +CONF_FILES= ${EGDIR}/afp.conf ${PKG_SYSCONFDIR}/afp.conf +CONF_FILES+= ${EGDIR}/extmap.conf ${PKG_SYSCONFDIR}/extmap.conf + +RCD_SCRIPTS= netatalk +RCD_SCRIPT_SRC.netatalk= ${WRKSRC}/distrib/initscripts/rc.netbsd +SMF_SRCDIR= ${WRKSRC}/distrib/initscripts +SMF_METHODS= netatalk_smf +SMF_MANIFEST= netatalk.xml + +CONFLICTS= netatalk22-[0-9]* netatalk-30-[0-9]* netatalk-[0-9]* +CONFLICTS+= netatalk-asun-[0-9]* netatalk-umich-[0-9]* + +.include "../../mk/bsd.prefs.mk" + +BUILD_DEFS+= VARBASE +OWN_DIRS+= ${VARBASE}/db/netatalk/CNID ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} + +CONFIGURE_ARGS+= --enable-overwrite +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}/db +CONFIGURE_ARGS+= --with-uams-path=${PREFIX}/libexec/netatalk/uams +CONFIGURE_ARGS+= --with-bdb=${BUILDLINK_PREFIX.db5} +CONFIGURE_ARGS+= --with-ssl-dir=${BUILDLINK_PREFIX.openssl} +CONFIGURE_ARGS+= --with-libevent-header=${BUILDLINK_PREFIX.libevent}/include +CONFIGURE_ARGS+= --with-libevent-lib=${BUILDLINK_PREFIX.libevent}/lib +CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH} + +# Upstream bug, was supposed to be fixed in 3.0.8? +CFLAGS.SunOS+= -I/usr/include/kerberosv5 + +MAKE_DIRS+= ${PKG_SYSCONFDIR}/msg + +REPLACE_PYTHON+= contrib/shell_utils/afpstats +REPLACE_PYTHON+= libevent/event_rpcgen.py + +SUBST_CLASSES+= paths +SUBST_MESSAGE.paths= Fixing hardcoded paths. +SUBST_STAGE.paths= pre-configure +SUBST_FILES.paths= distrib/initscripts/Makefile.in +SUBST_SED.paths= -e "s,^\\(DVIPS=\\)\\(/usr/local/tex\\)\\(/bin\\),\\1${PREFIX}\\3," + +PLIST_VARS+= ea +.if ${OPSYS} == "SunOS" || ${OPSYS} == "DragonFly" || ${OPSYS} == "Linux" || \ + (${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-6].[0-8]*)) +PLIST.ea= yes +.endif + +CONFIGURE_ARGS.NetBSD+= --without-dtrace + +.include "options.mk" + +INSTALLATION_DIRS= libexec/psffilters etc/netatalk + +post-configure: + ${CP} ${FILESDIR}/netatalk_smf.sh ${SMF_SRCDIR} + +.if !empty(PKG_OPTIONS:Mpam) +post-install: + ${INSTALL_DATA} ${WRKSRC}/config/pam/netatalk ${DESTDIR}${EGDIR}/netatalk.pam +.endif + +BUILDLINK_API_DEPENDS.libevent+= libevent>=2 +.include "../../devel/libevent/buildlink3.mk" +.include "../../lang/python/application.mk" +.include "../../security/libgcrypt/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.include "../../security/tcp_wrappers/buildlink3.mk" +.include "../../databases/db5/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/netatalk3/PLIST b/net/netatalk3/PLIST new file mode 100644 index 00000000000..897942f8a84 --- /dev/null +++ b/net/netatalk3/PLIST @@ -0,0 +1,74 @@ +@comment $NetBSD: PLIST,v 1.1 2016/11/07 00:45:30 christos Exp $ +${PLIST.ea}bin/ad +bin/afpldaptest +bin/afppasswd +bin/afpstats +bin/apple_dump +bin/asip-status.pl +bin/cnid2_create +bin/dbd +bin/macusers +bin/netatalk-config +include/atalk/acl.h +include/atalk/adouble.h +include/atalk/afp.h +include/atalk/bstrlib.h +include/atalk/cnid.h +include/atalk/compat.h +include/atalk/dictionary.h +include/atalk/ea.h +include/atalk/globals.h +include/atalk/hash.h +include/atalk/iniparser.h +include/atalk/list.h +include/atalk/logger.h +include/atalk/netatalk_conf.h +include/atalk/paths.h +include/atalk/standards.h +include/atalk/uam.h +include/atalk/unicode.h +include/atalk/unix.h +include/atalk/util.h +include/atalk/vfs.h +include/atalk/volume.h +lib/libatalk.la +libexec/netatalk/afpd +libexec/netatalk/cnid_dbd +libexec/netatalk/cnid_metad +libexec/netatalk/netatalk +libexec/netatalk/uams/uams_clrtxt.so +libexec/netatalk/uams/uams_dhx.so +libexec/netatalk/uams/uams_dhx2.so +${PLIST.pam}libexec/netatalk/uams/uams_dhx2_pam.la +libexec/netatalk/uams/uams_dhx2_passwd.la +${PLIST.pam}libexec/netatalk/uams/uams_dhx_pam.la +libexec/netatalk/uams/uams_dhx_passwd.la +${PLIST.gssapi}libexec/netatalk/uams/uams_gss.la +libexec/netatalk/uams/uams_guest.la +${PLIST.pam}libexec/netatalk/uams/uams_pam.la +libexec/netatalk/uams/uams_passwd.la +libexec/netatalk/uams/uams_randnum.la +man/man1/ad.1 +man/man1/afpldaptest.1 +man/man1/afppasswd.1 +man/man1/afpstats.1 +man/man1/apple_dump.1 +man/man1/asip-status.pl.1 +man/man1/dbd.1 +man/man1/macusers.1 +man/man1/netatalk-config.1 +man/man1/uniconv.1 +man/man5/afp.conf.5 +man/man5/afp_signature.conf.5 +man/man5/afp_voluuid.conf.5 +man/man5/extmap.conf.5 +man/man8/afpd.8 +man/man8/cnid_dbd.8 +man/man8/cnid_metad.8 +man/man8/netatalk.8 +share/aclocal/netatalk.m4 +share/examples/netatalk/afp.conf +share/examples/netatalk/extmap.conf +${PLIST.pam}share/examples/netatalk/netatalk.pam +@pkgdir libexec/psffilters +@pkgdir etc/netatalk diff --git a/net/netatalk3/distinfo b/net/netatalk3/distinfo new file mode 100644 index 00000000000..b198160619d --- /dev/null +++ b/net/netatalk3/distinfo @@ -0,0 +1,20 @@ +$NetBSD: distinfo,v 1.1 2016/11/07 00:45:30 christos Exp $ + +SHA1 (netatalk-3.1.7.tar.bz2) = d4077a9496beae766ab1e4f28afa22e5c96514f0 +RMD160 (netatalk-3.1.7.tar.bz2) = 0fddc514a0654ffa546424d33b0b02f2f147f7be +SHA512 (netatalk-3.1.7.tar.bz2) = e8b22a156235cb93830ed5045e28346613e354fd830e742b2f7c1fc9302f9bdfce7fb2cc329ce8dfd1442857f96e9e54119a4ac177b6855af9143e64fb2208e7 +Size (netatalk-3.1.7.tar.bz2) = 1780078 bytes +SHA1 (patch-bin_ad_ad__cp.c) = ef65d56186d38c0c2d7082c379bbab8c8ebd0cdb +SHA1 (patch-bin_afppasswd_afppasswd.c) = e029893d8f109c59a44ab1fb68aec7069278b7e6 +SHA1 (patch-config.h.in) = 23abcb4d0f94aef460326602486949f8ce781d1b +SHA1 (patch-config_Makefile.in) = 9284ff5e523f3cf365bad1267e9f06f68aed983a +SHA1 (patch-config_pam_Makefile.in) = b76b6408ca7ad93d195acd70e1029b3b6aa000fc +SHA1 (patch-distrib_initscripts_Makefile.in) = fbdd481b2076cc8f416c216641890c3e5620bdcc +SHA1 (patch-distrib_initscripts_netatalk.xml.tmpl) = dd7591e12eca3c1e7d7bc768cd1e060979dc383e +SHA1 (patch-etc_afpd_quota.c) = 90025824fd513788c167108e4c388b453ab75ee6 +SHA1 (patch-etc_cnid__dbd_cnid__metad.c) = 907ded1c894a6872dfd082c061369f3f2ebf2929 +SHA1 (patch-etc_uams_uams__randnum.c) = 51e8b4a0c77f732423be9406c9f47d004403080a +SHA1 (patch-include_atalk_acl.h) = 138ce03f55d19d5c1131727d35f3c4dffd5c5e04 +SHA1 (patch-include_atalk_util.h) = ed4a85b01e28613c6561f76ca34d641cce2cf859 +SHA1 (patch-libatalk_util_getiface.c) = fe4aba6080f6308866bedb3d96ccc2b034836d3e +SHA1 (patch-macros_quota-check.m4) = aa8a053b83bc4579ca0a8f66f43226ead8e79696 diff --git a/net/netatalk3/options.mk b/net/netatalk3/options.mk new file mode 100644 index 00000000000..da111bf888a --- /dev/null +++ b/net/netatalk3/options.mk @@ -0,0 +1,58 @@ +# $NetBSD: options.mk,v 1.1 2016/11/07 00:45:30 christos Exp $ +# +PKG_OPTIONS_VAR= PKG_OPTIONS.netatalk +PKG_SUPPORTED_OPTIONS= cups debug dnssd kerberos ldap pam + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mcups) +.include "../../print/cups15/buildlink3.mk" +CONFIGURE_ARGS+= --enable-cups +.else +CONFIGURE_ARGS+= --disable-cups +.endif + +PLIST_VARS+= debug +.if !empty(PKG_OPTIONS:Mdebug) +# Debugging +CONFIGURE_ARGS+= --enable-debug1 +CONFIGURE_ARGS+= --enable-debug +CONFIGURE_ARGS+= --enable-debugging +CFLAGS+= -g3 +INSTALL_UNSTRIPPED= yes +.endif + +PLIST_VARS+= dnssd +.if !empty(PKG_OPTIONS:Mdnssd) +.include "../../net/mDNSResponder/buildlink3.mk" +CONFIGURE_ARGS+= --enable-zeroconf +.else +# configure patched to zeroconf="no" +.endif + +PLIST_VARS+= gssapi +.if !empty(PKG_OPTIONS:Mkerberos) +.include "../../mk/krb5.buildlink3.mk" +CONFIGURE_ARGS+= --with-gssapi --enable-krbV-uam +CONFIGURE_ENV+= GSSAPI_LIBS="-lkrb5 -lroken -lasn1 -lcrypto -lcom_err" +PLIST.gssapi= yes +.else +CONFIGURE_ARGS+= --without-kerberos +.endif + +.if !empty(PKG_OPTIONS:Mldap) +.include "../../databases/openldap-client/buildlink3.mk" +CONFIGURE_ARGS+= --with-ldap=yes +.else +CONFIGURE_ARGS+= --with-ldap=no +.endif + +PLIST_VARS+= pam +.if !empty(PKG_OPTIONS:Mpam) +.include "../../mk/pam.buildlink3.mk" +CONFIGURE_ARGS+= --with-pam +PLIST.pam= yes +MESSAGE_SRC+= MESSAGE MESSAGE.pam +.else +CONFIGURE_ARGS+= --without-pam +.endif |