aboutsummaryrefslogtreecommitdiffstats
path: root/net/ntp-stable/Makefile
blob: b874ff7fa88d2bc7463fb77a8c5d8db66f9610b8 (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
# New ports collection makefile for:    ntp
# Date created:     Di   5 Mai 1998 21:31:03 CEST
# Whom:         andreas
#
# $FreeBSD$
#

PORTNAME=   ntp
PORTVERSION=    4.2.0a
PORTREVISION=   ${YEAR}${MONTH}${DAY}
CATEGORIES= net ipv6
YEAR=       2006
MONTH=      02
DAY=        24
SNAPSHOT_DIR=   snapshots/ntp-stable/${YEAR}/${MONTH}
MASTER_SITES=   ftp://ftp.udel.edu/pub/ntp/ntp4/${SNAPSHOT_DIR}/ \
        http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/${SNAPSHOT_DIR}/ \
        ftp://ftp.archive.de.uu.net/pub/unix/ntp/ntp4/${SNAPSHOT_DIR} \
        ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/ntp/ntp4/${SNAPSHOT_DIR}/
DISTNAME=   ${PORTNAME}-stable-${PORTVERSION:S/.r/-rc/}-${YEAR}${MONTH}${DAY}

MAINTAINER= cy@FreeBSD.org
COMMENT=    The Network Time Protocol Distribution

LATEST_LINK=    ${PORTNAME}-stable

GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}

.if defined(ENABLE_RAWDCF)
CONFIGURE_ARGS+=    --enable-RAWDCF
.endif

.if defined(WITHOUT_SSL)
CONFIGURE_ARGS+=    --without-crypto
PLIST_SUB+=     SSL="@comment "
.else
USE_OPENSSL=        yes
CONFIGURE_ARGS+=    --with-openssl-incdir=${OPENSSLINC} \
            --with-openssl-libdir=${OPENSSLLIB}
PLIST_SUB+=     SSL=""
.endif

post-install:
    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/conf/* ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${FIND} ${WRKSRC}/html -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
    @cd ${WRKSRC}/html && ${FIND} . -print | \
        ${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} --quiet ${DOCSDIR}
.endif

.include <bsd.port.mk>