source: freewrt/package/openntpd/Makefile@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 was 09c9057, checked in by Waldemar Brodkorb <wbx@…>, 4 months ago

use only one pkg source, remove dead ones

  • Property mode set to 100644
File size: 1.8 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:= 4
12PKG_MD5SUM:= afc34175f38d08867c1403d9008600b3
13PKG_INIT:= 55
14
15PKG_SOURCE_URL:= ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/
16
17include $(TOPDIR)/mk/package.mk
18
19$(eval $(call PKG_template,OPENNTPD,openntpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured:
22 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 --disable-nls \
44 --with-builtin-arc4random \
45 --with-privsep-user=ntp \
46 --with-adjtimex \
47 );
48 touch $@
49
50$(WRKBUILD)/.built:
51 $(MAKE) -C $(WRKBUILD)
52 touch $@
53
54$(IPKG_OPENNTPD):
55 $(INSTALL_DIR) $(IDIR_OPENNTPD)/etc
56 $(INSTALL_DATA) ./files/ntpd.conf $(IDIR_OPENNTPD)/etc/
57 $(INSTALL_DIR) $(IDIR_OPENNTPD)/etc/init.d
58 $(INSTALL_BIN) ./files/ntpd.init $(IDIR_OPENNTPD)/etc/init.d/S$(PKG_INIT)ntpd
59 $(INSTALL_DIR) $(IDIR_OPENNTPD)/usr/sbin/
60 $(INSTALL_BIN) $(WRKBUILD)/ntpd $(IDIR_OPENNTPD)/usr/sbin/
61 $(INSTALL_DIR) $(IDIR_OPENNTPD)/etc/ppp/ip-up.d
62 $(INSTALL_BIN) ./files/ntpd.ip-up $(IDIR_OPENNTPD)/etc/ppp/ip-up.d/ntpd
63 $(RSTRIP) $(IDIR_OPENNTPD)
64 $(IPKG_BUILD) $(IDIR_OPENNTPD) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.