Search libwrap in STAGING_DIR/usr
[openwrt.git] / openwrt / package / openntpd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=openntpd
6 PKG_VERSION:=3.6.1p1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=4584f226523776a3cdd2fb6f8212ba8d
9
10 # space separated list or special @SF for sourceforge projects
11 PKG_SOURCE_URL:=ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \
12 ftp://ftp.de.openbsd.org/pub/unix/OpenBSD/OpenNTPD/
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_CAT:=zcat
15
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,OPENNTPD,openntpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --program-prefix="" \
31 --program-suffix="" \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --datadir=/usr/share \
36 --includedir=/usr/include \
37 --infodir=/usr/share/info \
38 --libdir=/usr/lib \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var \
41 --mandir=/usr/share/man \
42 --sbindir=/usr/sbin \
43 --sysconfdir=/etc \
44 $(DISABLE_LARGEFILE) \
45 $(DISABLE_NLS) \
46 --with-builtin-arc4random \
47 --with-privsep-user=ntp \
48 );
49 touch $@
50
51 $(PKG_BUILD_DIR)/.built:
52 $(MAKE) -C $(PKG_BUILD_DIR)
53 touch $@
54
55 $(IPKG_OPENNTPD):
56 install -d -m0755 $(IDIR_OPENNTPD)/etc
57 install -m0644 ./files/ntpd.conf $(IDIR_OPENNTPD)/etc/
58 install -d -m0755 $(IDIR_OPENNTPD)/etc/init.d
59 install -m0755 ./files/ntpd.init $(IDIR_OPENNTPD)/etc/init.d/S55ntpd
60 install -d -m0755 $(IDIR_OPENNTPD)/usr/sbin/
61 install -m0755 $(PKG_BUILD_DIR)/ntpd $(IDIR_OPENNTPD)/usr/sbin/
62 $(RSTRIP) $(IDIR_OPENNTPD)
63 $(IPKG_BUILD) $(IDIR_OPENNTPD) $(PACKAGE_DIR)
64
This page took 0.045256 seconds and 5 git commands to generate.