aboutsummaryrefslogtreecommitdiffstats
path: root/net/netatalk/Makefile
blob: c890d29836ee836a2ae4052017931f4a3a80d017 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Ports collection makefile for:    netatalk
# Date created:         23 Jul 1997
# Whom:                 stb
#
# $FreeBSD$
#

PORTNAME=   netatalk
PORTVERSION=    2.0.4
PORTEPOCH=  1
CATEGORIES= net print
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= netatalk

MAINTAINER= marcus@FreeBSD.org
COMMENT=    File and print server for AppleTalk networks

LIB_DEPENDS=    gcrypt:${PORTSDIR}/security/libgcrypt

.if defined(WITH_SRVLOC)
LIB_DEPENDS+=   slp.1:${PORTSDIR}/net/openslp
.endif

USE_AUTOTOOLS=  libtool:22
USE_BZIP2=  yes
USE_ICONV=  yes
USE_BDB=    41+
USE_RC_SUBR=    netatalk
CONFIGURE_ARGS+=    --with-tcp-wrappers \
            --with-pkgconfdir=${PREFIX}/etc \
            --with-libiconv=${LOCALBASE} \
            --with-libgcrypt-prefix=${LOCALBASE}

.if defined(WITH_KRB5)
CONFIGURE_ARGS+=    --enable-krbV-uam
PLIST_SUB+=     NETATALKKRB5=""
.else
PLIST_SUB+=     NETATALKKRB5="@comment "
.endif

.if defined(WITH_PAM)
CONFIGURE_ARGS+=    --with-pam=/etc/pam.d
PLIST_SUB+=     NETATALKPAM=""
.else
CONFIGURE_ARGS+=    --without-pam
PLIST_SUB+=     NETATALKPAM="@comment "
.endif
.if defined(WITH_SRVLOC)
# Enable Service Location Protocol support.  This allows MacOS X < 10.1 to
# pickup afpd servers in the network.
CONFIGURE_ARGS+=    --enable-srvloc=${LOCALBASE}
.endif
CONFIGURE_ARGS+=    --with-bdb=${LOCALBASE}
.if defined (WITH_TIMELORD)
CONFIGURE_ARGS+=    --enable-timelord
PLIST_SUB+=     TIMELORD=""
.else
PLIST_SUB+=     TIMELORD="@comment "
.endif
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_PERL5=  yes
FILES=      AppleVolumes.default AppleVolumes.system afpd.conf \
        atalkd.conf papd.conf netatalk.conf
LINKS=      unbin unhex unsingle hqx2bin single2bin macbinary \
        binheader nadheader
MAN1=       achfile.1 aecho.1 afile.1 afppasswd.1 getzones.1 \
        megatron.1 nbp.1 pap.1 psorder.1 hqx2bin.1 macbinary.1 \
        nbplkup.1 nbprgstr.1 nbpunrgstr.1 papstatus.1 \
        single2bin.1 unbin.1 unhex.1 unsingle.1 acleandir.1 \
        netatalk-config.1 apple_cp.1 apple_mv.1 \
        apple_rm.1 uniconv.1 asip-status.pl.1 cnid_index.1
MAN3=       atalk_aton.3 nbp_name.3
MAN4=       atalk.4
MAN5=       AppleVolumes.default.5 afpd.conf.5 atalkd.conf.5 \
        netatalk.conf.5 papd.conf.5
MAN8=       afpd.8 atalkd.8 cnid_dbd.8 cnid_metad.8 papd.8 papstatus.8 \
        psf.8 timelord.8

CONFLICTS=  bigloo-2.* cap-6.0.* tct-1.* netatalk-1*

.if defined(WITH_SRVLOC)
SUB_LIST+=  SRVLOC="slpd"
.else
SUB_LIST+=  SRVLOC=""
.endif

pre-everything::
    @${ECHO_MSG} ""
    @${ECHO_MSG} "Netatalk has the following tunable options:"
    @${ECHO_MSG} "      WITH_SRVLOC=yes     Enable Service Location Protocol support"
    @${ECHO_MSG} "      WITH_PAM=yes        Enable PAM support"
    @${ECHO_MSG} "      WITH_TIMELORD=yes   Enable Timelord network time service"
    @${ECHO_MSG} "      WITH_KRB5=yes       Enable Kerberos V UAM"
    @${ECHO_MSG} ""
    @${ECHO_MSG} "See Netatalk's Makefile for more details on some of these options."
    @${ECHO_MSG} ""

post-patch:
    @${REINPLACE_CMD} -e 's|%%DB_NAME%%|${BDB_INCLUDE_DIR:T}| ; \
            s|%%DB_LIB%%|-l${BDB_LIB_NAME}|g' \
        ${WRKSRC}/configure

post-install:
    @${RM} -f ${PREFIX}/bin/nu ${PREFIX}/bin/lp2pap.sh \
        ${PREFIX}/bin/test_parse_mtab \
        ${PREFIX}/bin/afpd-mtab.pl
    ${INSTALL_SCRIPT} ${WRKSRC}/contrib/macusers/macusers \
        ${PREFIX}/bin/macusers
.for i in ${FILES}
    [ -f ${PREFIX}/etc/${i} ] || \
        ${INSTALL_DATA} -c ${PREFIX}/etc/${i}.dist ${PREFIX}/etc/${i}
.endfor
.for i in ${LINKS}
    ( cd ${PREFIX}/bin && ${LN} -sf megatron ${i} )
.endfor
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
-86/+140 * - Update to 2.41crees2011-10-195-7/+7 * - Updated to 0.8glarkin2011-10-182-5/+5 * - Update dependencies after KDE ports upgrade.avilla2011-10-174-4/+2 * Chase www/libmicrohttpd shlib bumppawel2011-10-131-2/+2 * Introduce qbittorrent 2.9.0, with the following new features vs. the 2.8.xdougb2011-10-1010-1/+180 * Remove ports maintainted by ports@ which have passed their EXPIRATION_DATEdougb2011-10-097-152/+0 * EiskaltDC++ is a cross-platform program that uses the Direct Connectpawel2011-10-067-0/+160 * - Update to version 2.2.1pawel2011-10-0625-736/+921 * 0.15.8 releasedougb2011-10-032-4/+3 * As previously advertised, delete ports that havedougb2011-09-3023-2765/+0 * As previously advertised, remove ports that previously had beendougb2011-09-3028-725/+0 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-2425-55/+44 * - Update to 0.4.0.shaun2011-09-242-6/+12 * * Mon Sep 12 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.8.5dougb2011-09-222-3/+3 * Mark BROKEN: does not builderwin2011-09-211-0/+1 * Fix build with clang.rene2011-09-211-0/+20 * - Update to 3.1.0 [1]rene2011-09-164-20/+35 * Change maintainer address to my FreeBSD addresscs2011-09-151-1/+1 * - Pass maintainership to submittersunpoet2011-09-101-4/+1 * Cleanup, and stop auto-detecting OGG-- now an option.crees2011-09-082-17/+26 * 2011-09-01 korean/hlatexfonts-ocf: No more public distfilesbapt2011-09-0710-141/+0 * Mark vulnerable ports FORBIDDEN with EXPIRATION_DATE= 2011-09-30dougb2011-09-031-0/+3 * s/EXPIRATION/EXPIRATION_DATE/dougb2011-09-035-5/+5 * Add DEPRECATED and EXPIRATION, depends on ../gift which is also DEPRECATEDdougb2011-09-031-0/+3 * Add EXPIRATION to ports marked DEPRECATED that do not already have it. [1]dougb2011-09-034-0/+4 * - Update to 0.9.8sylvio2011-09-022-6/+6 * Chase libnotify, libproxy and webkit-gtk2 shlib changes, and fix build where ...kwm2011-08-243-2/+14 * - update to 1.3.3kwm2011-08-234-48/+50 * Over to new volunteer. Give this a reprieve from the axe.linimon2011-08-221-4/+1 * Update maintainer address and commentcrees2011-08-211-2/+2 * - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is definedohauer2011-08-211-2/+2 * Update to 4.1.2makc2011-08-193-4/+7 * Update to 1.1.2makc2011-08-193-4/+7 * - Fixed WWW link after divmod.org went offlineglarkin2011-08-181-1/+1 * Deprecate, these ports have been unmaintained upstream for several years.rene2011-08-164-0/+8 * Fix fetch, but it could still do with an update.crees2011-08-131-3/+3 * - Change to use alternative server, thus making it useful again.crees2011-08-131-6/+5 * Remove USE_GNOME=gnometarget from ports. It has been a empty keyword sincekwm2011-08-123-3/+2 * * Tue Aug 09 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.8.4dougb2011-08-112-3/+3 * Update to 2.33crees2011-08-103-4/+4 * Apply the same solution for COMPILETIME_OPTIONS+= as in -15dougb2011-08-091-1/+5 * Fix handling of COMPILETIME_OPTIONS in configure. Inspired by the PRdougb2011-08-091-7/+10 * - Update to 0.3.24.shaun2011-08-082-16/+8 * * Tue Aug 02 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.8.3dougb2011-08-072-3/+3 * Update to version 0.15.7:dougb2011-08-072-4/+5 * - update WWWdinoex2011-08-061-1/+1 * Deprecate some ports where I can't find distfiles and upstreambapt2011-08-033-0/+9 * Mark BROKEN: Does not fetchbapt2011-08-032-0/+4 * Deprecate napster clientsbapt2011-08-023-0/+8 * Bye bye abandonwares (part 4)bapt2011-08-016-68/+0 * - Chase guile shared lib bumpjlaffaye2011-07-311-2/+2 * Add bison build dependancy to fix the build after the recent glib and gtk upd...kwm2011-07-301-0/+1 * Take these for now, mezz can take them back whenever he likes.crees2011-07-285-5/+5 * Add BUILD_DEPENDS on devel/gettextlioux2011-07-271-1/+2 * - Reset at maintainer's requesttabthorpe2011-07-261-1/+1 * - Reset ports at maintainers requesttabthorpe2011-07-254-4/+4 * o Update to 0.8.7lioux2011-07-252-5/+6 * Drop maintainershiplioux2011-07-256-6/+6 * take in some orphansbf2011-07-241-1/+1 * Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,linimon2011-07-216-6/+6 * - Update to 10589crees2011-07-214-51/+32 * Update to 3.0.7lioux2011-07-202-5/+5 * Update net-p2p/rtorrent-devel to 0.8.9.flz2011-07-182-6/+6 * Update net-p2p/rtorrent to 0.8.9.flz2011-07-184-21/+10 * Update net-p2p/libtorrent-devel to 0.12.9.flz2011-07-183-46/+45 * Update net-p2p/libtorrent to 0.12.9.flz2011-07-183-40/+49 * Remove net-p2p/tvrssarved2011-07-144-69/+0 * Unbreak port and update to 1.3.2.jsa2011-07-114-88/+133 * Chase libmicrohttpd shared lib bumpjlaffaye2011-07-111-1/+1 * - Update to 0.10wen2011-07-052-3/+3 * - Reassign to the heaptabthorpe2011-07-053-3/+3 * - Chase the libgcrypt shared lib versionswills2011-07-031-2/+2 * - Kick MD5 Supportmiwi2011-07-0380-80/+0 * - Upgrade to 0.3.23.shaun2011-07-022-9/+27 * Forgot to remove a patch.mezz2011-07-011-11/+0 * Update to 2.32.mezz2011-07-015-8/+7 * Chase xmlrpc-c lib version and bump PORTREVISIONgarga2011-06-301-1/+1 * - Add missing dependencyacm2011-06-292-2/+4 * - Update to 1.2.16acm2011-06-254-130/+125 * - Update to 3.1acm2011-06-234-12/+34 * Kill EOL whitespace.danfe2011-06-231-8/+8 * - Replace ../../authors in MASTER_SITE_SUBDIR with CPAN:CPANID macro.az2011-06-212-5/+4 * - Replace ../../authors in MASTER_SITE_SUBDIR with CPAN:CPANID macro.az2011-06-202-2/+2 * * Sat Jun 18 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.8.2dougb2011-06-202-3/+3 * Another bunch of deprecation: no more public distfiles and/or abandonwarebapt2011-06-171-0/+3 * Mark broken some ports with unfetchable distfilesbapt2011-06-172-0/+4 * remove broken master_site from the listbapt2011-06-171-2/+1 * Update to 4.1.1makc2011-06-153-4/+4 * Update to 1.1.1makc2011-06-153-4/+4 * - Fix {BUILD|RUN}_DEPENDSsunpoet2011-06-131-6/+9 * Fix local patch.flz2011-06-111-4/+4 * Add local patch to fix rtorrent's spinlock implementation.flz2011-06-094-2/+24 * All qbittorrent development has moved to the 2.8 branch, so introducedougb2011-06-0618-392/+22 * Chase security/gnutls update and add an UPDATING entry.novel2011-06-061-0/+1 * net-p2p/rtorrent-devel isn't broken anymore.flz2011-05-251-2/+0 * Second half of the previous fix.shaun2011-05-251-1/+1 * - Fix miniupnpc library dependency.shaun2011-05-251-1/+2 * Fix plist.shaun2011-05-251-4/+6 * The distfile for this port is assembled (or made available) on the fly.shaun2011-05-251-0/+9 * Update net-p2p/rtorrent-devel to 0.8.8.flz2011-05-243-18/+5 * Update net-p2p/libtorrent to 0.12.8.flz2011-05-243-5/+15 * Fix dependency line.shaun2011-05-221-1/+1 * Update to 2.31.mezz2011-05-229-37/+33 * Add port: bitcoinshaun2011-05-214-0/+82 * - Mark BROKEN: fails to packagepav2011-05-181-0/+2 * - Cleaning MD5 in perl@'s portsjadawin2011-05-172-2/+0 * - Switch to launchpadlibrarian.net as distribution site (default downloaddanfe2011-05-172-7/+2 * Remove painful examples of foo="", with particular prejudice againstdougb2011-05-154-11/+9 * rtorrent-devel: fix distinfo.flz2011-05-081-2/+2 * rtorrent-devel: update to 0.8.7, enable ipv6 by default, fix with ncurses 5.8.flz2011-05-082-4/+15 * libtorrent-devel: update to 0.12.7.flz2011-05-083-36/+39 * rtorrent: enabled ipv6 by default, fix with ncurses 5.8, fix link.flz2011-05-083-4/+14 * Update libevent2 to 2.0.11mm2011-05-053-4/+4 * update MASTER_SITE so that it is fetchable again. while here remove MD5bapt2011-05-034-4/+2 * removed unmaintained expired ports from net-p2pbapt2011-05-0225-557/+0 * Removed, depends on linux-edonkey-core which has expiredbapt2011-05-0211-637/+0 * Remove most expired ports:rene2011-04-196-119/+0 * Introduce version 2.7.3, the latest in the new 2.7.x branch.dougb2011-04-179-0/+371 * Set NO_LATEST_LINK in preparation for adding version 2.7.xdougb2011-04-171-0/+2 * Update to 2.6.9, the latest, and likely the last 2.6.x releasedougb2011-04-172-4/+4 * 0.15.6 releasedougb2011-04-172-3/+3 * 2011-04-11 devel/thistest: development has ceased; website disappearedbapt2011-04-1214-729/+0 * Update to GNU make 3.82 after numerous -exp runs.ade2011-04-122-0/+30 * - Update to 0.96.9dhn2011-04-064-7/+33 * Garbage collect expired portsrene2011-04-058-158/+0 * - Actually chase upnp shlib changepav2011-03-272-2/+2 * - Update libktorrent to 1.1.0.avilla2011-03-256-72/+55 * - Chase devel/upnp shlib bumppawel2011-03-242-2/+2 * Bump Berkeley DB version to 4.1.mandree2011-03-222-6/+4 * Get rid of md5 for all my ports.bapt2011-03-211-1/+0 * Bump PORTREVISION for ports linking to default libmysqlclient.ale2011-03-192-1/+2 * Fix transmission-qt to avoid link with both libevent 1.x and 2.x librariesmezz2011-03-182-1/+12 * - Mark ports that have been broken for six month or more, or never compiled onpav2011-03-171-0/+2 * Deprecate unmaintained ports from net-p2p where upstream disapear and/orbapt2011-03-145-0/+15 * Update WWWbapt2011-03-143-4/+2 * - Update to 0.09culot2011-03-122-3/+3 * Mark DEPRECATEDaz2011-03-111-0/+3 * - Update to 0.06miwi2011-03-102-3/+4 * - Update to 1.35wen2011-03-094-22/+3 * - Mark BROKEN: does not configurepav2011-03-091-0/+2 * Update MASTER_SITESehaupt2011-03-071-2/+1 * - Chase libextractor shlib raisepav2011-03-071-2/+2 * - Update to 2.22.mezz2011-03-058-16/+48 * - Chase devel/upnp shlib bumpmiwi2011-03-042-2/+4 * - Reassign ports to heaptabthorpe2011-02-275-5/+5 * Chase after net/openldap24-server update.delphij2011-02-251-0/+1 * - Move to py25 or abovemiwi2011-02-254-6/+4 * Remove expired ports:rene2011-02-257-113/+0 * - Fix Build after rtorrent upgrademiwi2011-02-182-2/+3 * * Tue Feb 8 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.6dougb2011-02-112-3/+3 * * Thu Feb 3 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.5dougb2011-02-112-3/+3 * - Update to 0.8.7miwi2011-02-062-10/+12 * - Update to 0.12.7miwi2011-02-063-38/+46 * * Sun Jan 23 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.4dougb2011-01-282-3/+3 * Add LICENSE and remove MD5 sums.ehaupt2011-01-262-1/+2 * - Mark BROKEN: unfetchablepav2011-01-251-0/+4