fix wrong permissions on /etc (fixes from [3327])
[openwrt.git] / openwrt / package / openntpd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=openntpd
6 PKG_VERSION:=3.7p1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=10ed8eefd760e5819efcf3277b118f47
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 ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenNTPD/ \
14 ftp://ftp.sunet.se/pub/OpenBSD/OpenNTPD/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_CAT:=zcat
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19
20 include $(TOPDIR)/package/rules.mk
21
22 $(eval $(call PKG_template,OPENNTPD,openntpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24 $(PKG_BUILD_DIR)/.configured:
25 (cd $(PKG_BUILD_DIR); 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 $(DISABLE_LARGEFILE) \
47 $(DISABLE_NLS) \
48 --with-builtin-arc4random \
49 --with-privsep-user=ntp \
50 --with-adjtimex \
51 );
52 touch $@
53
54 $(PKG_BUILD_DIR)/.built:
55 $(MAKE) -C $(PKG_BUILD_DIR)
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/S55ntpd
63 install -d -m0755 $(IDIR_OPENNTPD)/usr/sbin/
64 install -m0755 $(PKG_BUILD_DIR)/ntpd $(IDIR_OPENNTPD)/usr/sbin/
65 $(RSTRIP) $(IDIR_OPENNTPD)
66 $(IPKG_BUILD) $(IDIR_OPENNTPD) $(PACKAGE_DIR)
67
This page took 0.044436 seconds and 5 git commands to generate.