aboutsummaryrefslogtreecommitdiffstats
path: root/net/samba-tng/Makefile
blob: b8e88ef4caa7d7d35216fd5be501af54038454ee (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
# New ports collection makefile for:    samba
# Date created:             11th May 2002
# Whom:                 dwcjr
#
# $FreeBSD$
#

PORTNAME=   samba-tng
PORTVERSION=    2.6.1c20020507
CATEGORIES= net
MASTER_SITES=   http://www.samba-tng.org/download/tng/ \
        http://samba.cadcamlab.org/debian/woody/ \
        http://something.inethouston.net/~poseiden/
DISTNAME=   ${PORTNAME}${PKGNAMESUFFIX}_0.${PORTVERSION:S,c,cvs,}

MAINTAINER= dwcjr@FreeBSD.org

GNU_CONFIGURE=  YES
INSTALLS_SHLIB= YES
USE_GMAKE=  YES
WRKSRC=     ${WRKDIR}/tng-clean/source

# directories
VARDIR=     /var
SAMBA_SPOOL=    ${VARDIR}/spool/samba
SAMBA_LOGDIR=   ${VARDIR}/log
SAMBA_PRIVATE=  ${PREFIX}/private
SAMBA_CONFDIR=  ${PREFIX}/etc

CONFIGURE_ARGS= --libdir=${PREFIX}/lib \
        --localstatedir=${VARDIR}/lock \
        --with-privatedir=${SAMBA_PRIVATE} --with-pam \
        --with-logdir=${VARDIR}/log --with-tmpdir=${VARDIR}/run

MAN1=       debug2html.1 make_smbcodepage.1 nmblookup.1 \
        regedit.1 rpcclient.1 smbclient.1 smbrun.1 \
        smbstatus.1 smbtar.1 testparm.1 testprns.1 \
        wbinfo.1

MAN5=       lmhosts.5 smb.conf.5 smbpasswd.5

MAN7=       samba.7

MAN8=       browserd.8 lsarpcd.8 netlogond.8 nmbd.8 rpcclient.8 \
        samedit.8 samrd.8 smbd.8 smbmnt.8 smbmount.8 \
        smbpasswd.8 smbspool.8 smbumount.8 spoolssd.8 \
        srvsvcd.8 svcctld.8 swat.8 winbindd.8 winregd.8 \
        wkssvcd.8

.include <bsd.port.pre.mk>

.if defined(WITH_SYSLOG)
CONFIGURE_ARGS+=    --with-syslog
.endif

.if defined(WITH_MSDFS)
CONFIGURE_ARGS+=    --with-msdfs
.endif

post-install:
    @${INSTALL_SCRIPT} ${WRKSRC}/script/samba-init.d ${SAMBA_CONFDIR}/rc.d/samba-tng.sh.sample
    @${PERL} -pi.fbsd -e 's|tmpdir=/tmp|tmpdir=/var/run/samba-tng|g' ${SAMBA_CONFDIR}/rc.d/samba-tng.sh.sample

.include <bsd.port.post.mk>