source: freewrt/package/openntpd/Makefile@ b917538

freewrt_1_0 freewrt_2_0
Last change on this file since b917538 was b917538, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago
  • sync with changes in trunk
  • lzo2 instead of lzo
  • fix tinc/vtun build
  • security update for openssh/openssl
  • update for iproute2,openvpn,openntpd, iptables and ipp, openswan
  • disable ipv6 in busybox, autoselect this feature for all ipv6 related packages
  • add better startup scripts for openssh and openntpd

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@800 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.9 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= openntpd
10PKG_VERSION:= 3.9p1
11PKG_RELEASE:= 1
12PKG_MD5SUM:= afc34175f38d08867c1403d9008600b3
13PKG_INIT:= 55
14
15PKG_SOURCE_URL:= ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \
16 ftp://ftp.de.openbsd.org/pub/unix/OpenBSD/OpenNTPD/ \
17 ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenNTPD/ \
18 ftp://ftp.sunet.se/pub/OpenBSD/OpenNTPD/
19
20include $(TOPDIR)/mk/package.mk
21
22$(eval $(call PKG_template,OPENNTPD,openntpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24$(WRKBUILD)/.configured:
25 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
26 $(TARGET_CONFIGURE_OPTS) \
27 CFLAGS="$(TARGET_CFLAGS)" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 --enable-largefile \
47 --disable-nls \
48 --with-builtin-arc4random \
49 --with-privsep-user=ntp \
50 --with-adjtimex \
51 );
52 touch $@
53
54$(WRKBUILD)/.built:
55 $(MAKE) -C $(WRKBUILD)
56 touch $@
57
58$(IPKG_OPENNTPD):
59 install -d -m0755 $(IDIR_OPENNTPD)/etc
60 install -m0644 ./files/ntpd.conf $(IDIR_OPENNTPD)/etc/
61 install -d -m0755 $(IDIR_OPENNTPD)/etc/init.d
62 install -m0755 ./files/ntpd.init $(IDIR_OPENNTPD)/etc/init.d/S$(PKG_INIT)ntpd
63 install -d -m0755 $(IDIR_OPENNTPD)/usr/sbin/
64 install -m0755 $(WRKBUILD)/ntpd $(IDIR_OPENNTPD)/usr/sbin/
65 $(RSTRIP) $(IDIR_OPENNTPD)
66 $(IPKG_BUILD) $(IDIR_OPENNTPD) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.