aboutsummaryrefslogtreecommitdiff
path: root/net/ntp
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2011-11-27 19:43:27 +0000
committerCy Schubert <cy@FreeBSD.org>2011-11-27 19:43:27 +0000
commit54a0d4640b28371baebf399f77d975098ecb8a29 (patch)
tree777f1a3d0aef5c040c73609e1fe1173f07aef887 /net/ntp
parente5377361ed33e9cf649cd96c60f08cdc20dccd3c (diff)
downloadports-54a0d4640b28371baebf399f77d975098ecb8a29.tar.gz
ports-54a0d4640b28371baebf399f77d975098ecb8a29.zip
Notes
Diffstat (limited to 'net/ntp')
-rw-r--r--net/ntp/Makefile23
-rw-r--r--net/ntp/Makefile.inc103
2 files changed, 114 insertions, 12 deletions
diff --git a/net/ntp/Makefile b/net/ntp/Makefile
index 291ac43a65c3..9cf47e7cf47e 100644
--- a/net/ntp/Makefile
+++ b/net/ntp/Makefile
@@ -29,14 +29,16 @@ MAN1= sntp.1 \
ntpsnmpd.1 \
ntp-keygen.1 \
-OPTIONS= NTPSNMPD "Build and install ntpsnmpd" OFF \
- RAWDCF "Enable RAWDCF option" OFF \
- SSL "Enable SSL" ON
+.include "Makefile.inc"
.include <bsd.port.options.mk>
-.if defined(WITH_RAWDCF)
-CONFIGURE_ARGS+= --enable-RAWDCF
+.if defined(WITH_NTPSNMPD)
+PLIST_FILES+= bin/ntpsnmpd
+BUILD_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
+RUN_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
+.else
+CONFIGURE_ARGS+= --without-ntpsnmpd
.endif
.if !defined(WITH_SSL)
@@ -48,15 +50,12 @@ CONFIGURE_ARGS+= --with-openssl-incdir=${OPENSSLINC} \
--with-openssl-libdir=${OPENSSLLIB}
PLIST_SUB+= SSL=""
.endif
-CONFIGURE_ARGS+= --enable-ipv6
-.if defined(WITH_NTPSNMPD)
-PLIST_FILES+= bin/ntpsnmpd
-BUILD_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
-RUN_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
-.else
-CONFIGURE_ARGS+= --without-ntpsnmpd
+.for D in ${NTP_DRIVERS}
+.if defined(WITH_${D})
+CONFIGURE_ARGS+= --enable-${D}
.endif
+.endfor
pre-configure:
@cd ${WRKSRC} && ./bootstrap
diff --git a/net/ntp/Makefile.inc b/net/ntp/Makefile.inc
new file mode 100644
index 000000000000..86e7cb8dc61d
--- /dev/null
+++ b/net/ntp/Makefile.inc
@@ -0,0 +1,103 @@
+# $FreeBSD$
+
+OPTIONS= NTPSNMPD "Build and install ntpsnmpd" OFF \
+ SSL "Enable SSL" ON \
+ BANCOMM "Enable Datum/Bancomm bc635/VME interface" OFF \
+ GPSVME "Enable TrueTime GPS receiver/VME interface" OFF \
+ ACTS "Enable ACTS modem service" OFF \
+ ARBITER "Enable Arbiter 1088A/B GPS receiver" OFF \
+ ARCRON_MSF "Enable Arcron MSF receiver" OFF \
+ AS2201 "Enable Austron 2200A/2201A GPS receiver" OFF \
+ ATOM "Enable ATOM PPS interface" OFF \
+ CHRONOLOG "Enable Chrono-log K-series WWVB receiver" OFF \
+ CHU "Enable CHU modem/decoder" OFF \
+ AUDIO_CHU "Enable CHU audio/decoder" OFF \
+ DATUM "Enable Datum Programmable Time System" OFF \
+ DUMBCLOCK "Enable Dumb generic hh:mm:ss local clock" OFF \
+ FG "Enable Forum Graphic GPS" OFF \
+ HEATH "Enable Heath GC-1000 WWV/WWVH receiver" OFF \
+ HOPFSERIAL "Enable hopf serial clock device" OFF \
+ HOPFPCI "Enable hopf 6039 PCI board" OFF \
+ HPGPS "Enable HP 58503A GPS receiver" OFF \
+ IRIG "Enable IRIG audio decoder" OFF \
+ JJY "Enable JJY receiver" OFF \
+ JUPITER "Enable Rockwell Jupiter GPS receiver" OFF \
+ LEITCH "Enable Leitch CSD 5300 Master Clock" OFF \
+ LOCAL_CLOCK "Enable local clock reference" OFF \
+ MX4200 "Enable Magnavox MX4200 GPS receiver" OFF \
+ NEOCLOCK4X "Enable NeoClock4X DCF77 / TDF receiver" OFF \
+ NMEA "Enable NMEA GPS receiver" OFF \
+ ONCORE "Enable Motorola VP/UT Oncore GPS receiver" OFF \
+ PALISADE "Enable Palisade clock" OFF \
+ PCF "Enable Conrad parallel port radio clock" OFF \
+ PST "Enable PST/Traconex 1020 WWV/WWVH receiver" OFF \
+ RIPENCC "Enable RIPENCC specific Trimble driver" OFF \
+ SHM "Enable SHM clock attached thru shared memory" OFF \
+ SPECTRACOM "Enable Spectracom 8170/Netclock/2 WWVB" OFF \
+ TRUETIME "Enable Kinemetrics/TrueTime receivers" OFF \
+ ULINK "Enable Ultralink WWVB receiver" OFF \
+ WWV "Enable WWV Audio receiver" OFF \
+ ZYFER "Enable Zyfer GPStarplus receiver" OFF \
+ COMPUTIME "Enable Diem Computime Radio Clock" OFF \
+ DCF7000 "Enable ELV/DCF7000 clock" OFF \
+ HOPF6021 "Enable HOPF 6021 clock" OFF \
+ MEINBERG "Enable Meinberg clocks" OFF \
+ RAWDCF "Enable DCF77 raw time code" OFF \
+ RCC8000 "Enable RCC 8000 clock" OFF \
+ SCHMID "Enable Schmid DCF77 clock" OFF \
+ TRIMTAIP "Enable Trimble GPS receiver/TAIP protocol" OFF \
+ TRIMTSIP "Enable Trimble GPS receiver/TSIP protocol" OFF \
+ WHARTON "Enable WHARTON 400A Series clock" OFF \
+ VARITEXT "Enable VARITEXT clock" OFF
+
+# Not supported by FreeBSD: TPRO "Enable KSI/Odetics TPRO/S GPS receiver/IRIG" OFF \
+# XXX Broken under FreeBSD: TT560 "Enable TrueTime 560 IRIG-B decoder" OFF \
+
+NTP_DRIVERS= \
+ BANCOMM \
+ GPSVME \
+ ACTS \
+ ARBITER \
+ ARCRON_MSF \
+ AS2201 \
+ ATOM \
+ CHRONOLOG \
+ CHU \
+ AUDIO_CHU \
+ DATUM \
+ DUMBCLOCK \
+ FG \
+ HEATH \
+ HOPFSERIAL \
+ HOPFPCI \
+ HPGPS \
+ IRIG \
+ JJY \
+ JUPITER \
+ LEITCH \
+ LOCAL_CLOCK \
+ MX4200 \
+ NEOCLOCK4X \
+ NMEA \
+ ONCORE \
+ PALISADE \
+ PCF \
+ PST \
+ RIPENCC \
+ SHM \
+ SPECTRACOM \
+ TRUETIME \
+ ULINK \
+ WWV \
+ ZYFER \
+ COMPUTIME \
+ DCF7000 \
+ HOPF6021 \
+ MEINBERG \
+ RAWDCF \
+ RCC8000 \
+ SCHMID \
+ TRIMTAIP \
+ TRIMTSIP \
+ WHARTON \
+ VARITEXT