summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-03-23 09:41:29 +0000
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-03-23 09:41:29 +0000
commit00c4ce5585597296fb1e9418c869a505e980605f (patch)
treec722980b790e6b0287601c1e6df8f2e83f3dc874
parent9e88c96a2435d2c259aef1446823497c3cb7173e (diff)
downloadmtk-20170518-00c4ce5585597296fb1e9418c869a505e980605f.zip
mtk-20170518-00c4ce5585597296fb1e9418c869a505e980605f.tar.gz
mtk-20170518-00c4ce5585597296fb1e9418c869a505e980605f.tar.bz2
add openntpd. sort list of packages alphabetically in Makefile.
SVN-Revision: 422
-rw-r--r--openwrt/package/Config.in1
-rw-r--r--openwrt/package/Makefile17
-rw-r--r--openwrt/package/openntpd/Config.in6
-rw-r--r--openwrt/package/openntpd/Makefile71
-rwxr-xr-xopenwrt/package/openntpd/files/S49ntpd3
-rw-r--r--openwrt/package/openntpd/files/ntpd.conf3
-rw-r--r--openwrt/package/openntpd/openntpd.control8
7 files changed, 101 insertions, 8 deletions
diff --git a/openwrt/package/Config.in b/openwrt/package/Config.in
index 2cfaf37..50827c4 100644
--- a/openwrt/package/Config.in
+++ b/openwrt/package/Config.in
@@ -22,6 +22,7 @@ source "package/ebtables/Config.in"
source "package/arptables/Config.in"
source "package/iproute2/Config.in"
source "package/openvpn/Config.in"
+source "package/openntpd/Config.in"
source "package/pptp/Config.in"
source "package/pptpd/Config.in"
diff --git a/openwrt/package/Makefile b/openwrt/package/Makefile
index 4018631..bf333d3 100644
--- a/openwrt/package/Makefile
+++ b/openwrt/package/Makefile
@@ -2,31 +2,32 @@
include $(TOPDIR)/rules.mk
package-y:=openwrt
+package-$(BR2_PACKAGE_ARPTABLES) += arptables
package-$(BR2_PACKAGE_BRIDGE) += bridge
package-$(BR2_PACKAGE_BUSYBOX) += busybox
package-$(BR2_PACKAGE_DROPBEAR) += dropbear
package-$(BR2_PACKAGE_DNSMASQ) += dnsmasq
package-$(BR2_PACKAGE_EBTABLES) += ebtables
-package-$(BR2_PACKAGE_ARPTABLES) += arptables
+package-$(BR2_PACKAGE_HASERL) += haserl
package-$(BR2_PACKAGE_IPTABLES) += iptables
-package-$(BR2_PACKAGE_PPP) += ppp
+package-$(BR2_PACKAGE_IPROUTE2) += iproute2
+package-$(BR2_PACKAGE_LCD4LINUX) += lcd4linux
+package-$(BR2_PACKAGE_LIBELF) += libelf
package-$(BR2_PACKAGE_LZO) += lzo
-package-$(BR2_PACKAGE_ZLIB) += zlib
package-$(BR2_PACKAGE_MATRIXSSL) += matrixssl
+package-$(BR2_PACKAGE_MICROPERL) += microperl
package-$(BR2_PACKAGE_NCURSES) += ncurses
package-$(BR2_PACKAGE_OPENSSL) += openssl
+package-$(BR2_PACKAGE_OPENNTPD) += openntpd
package-$(BR2_PACKAGE_OPENVPN) += openvpn
package-$(BR2_PACKAGE_PCRE) += pcre
package-$(BR2_PACKAGE_POPT) += popt
+package-$(BR2_PACKAGE_PPP) += ppp
package-$(BR2_PACKAGE_PPTP) += pptp
package-$(BR2_PACKAGE_PPTPD) += pptpd
-package-$(BR2_PACKAGE_IPROUTE2) += iproute2
-package-$(BR2_PACKAGE_HASERL) += haserl
-package-$(BR2_PACKAGE_MICROPERL) += microperl
-package-$(BR2_PACKAGE_LIBELF) += libelf
package-$(BR2_PACKAGE_STRACE) += strace
package-$(BR2_PACKAGE_TCPDUMP) += tcpdump
-package-$(BR2_PACKAGE_LCD4LINUX) += lcd4linux
+package-$(BR2_PACKAGE_ZLIB) += zlib
all: compile install
clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m)) linux-clean
diff --git a/openwrt/package/openntpd/Config.in b/openwrt/package/openntpd/Config.in
new file mode 100644
index 0000000..06324d3
--- /dev/null
+++ b/openwrt/package/openntpd/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_OPENNTPD
+ tristate "Openntpd"
+ default m
+ help
+ NTP server
+ http://www.openntpd.org
diff --git a/openwrt/package/openntpd/Makefile b/openwrt/package/openntpd/Makefile
new file mode 100644
index 0000000..8094e5e
--- /dev/null
+++ b/openwrt/package/openntpd/Makefile
@@ -0,0 +1,71 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=openntpd
+PKG_VERSION:=3.6.1p1
+PKG_RELEASE:=1
+PKG_MD5SUM:=4584f226523776a3cdd2fb6f8212ba8d
+
+# space separated list or special @SF for sourceforge projects
+PKG_SOURCE_URL:=ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \
+ ftp://ftp.de.openbsd.org/pub/unix/OpenBSD/OpenNTPD/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_CAT:=zcat
+PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
+PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg
+
+$(DL_DIR)/$(PKG_SOURCE):
+ $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
+
+$(PKG_BUILD_DIR)/.unpacked: $(DL_DIR)/$(PKG_SOURCE)
+ $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(PKG_BUILD_DIR)/.unpacked
+
+$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.unpacked
+ (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --datadir=/usr/share \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --with-builtin-arc4random \
+ );
+ touch $(PKG_BUILD_DIR)/.configured
+
+$(PKG_BUILD_DIR)/ntpd: $(PKG_BUILD_DIR)/.configured
+ $(MAKE) -C $(PKG_BUILD_DIR)
+
+$(PKG_IPK): $(PKG_BUILD_DIR)/ntpd
+ $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
+ mkdir -p $(PKG_IPK_DIR){/usr/sbin,/etc/init.d}
+ cp $(PKG_BUILD_DIR)/ntpd $(PKG_IPK_DIR)/usr/sbin/
+ cp ./files/ntpd.conf $(PKG_IPK_DIR)/etc/
+ cp ./files/S49ntpd $(PKG_IPK_DIR)/etc/init.d/
+ $(STRIP) $(PKG_IPK_DIR)/usr/sbin/*
+ mkdir -p $(PACKAGE_DIR)
+ $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
+
+$(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_IPK)
+ $(IPKG) install $(PKG_IPK)
+
+source: $(DL_DIR)/$(PKG_SOURCE)
+prepare: $(PKG_BUILD_DIR)/.unpacked
+compile: $(PKG_IPK)
+install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
+
+clean:
+ rm -rf $(PKG_BUILD_DIR)
+ rm -f $(PKG_IPK)
diff --git a/openwrt/package/openntpd/files/S49ntpd b/openwrt/package/openntpd/files/S49ntpd
new file mode 100755
index 0000000..e528748
--- /dev/null
+++ b/openwrt/package/openntpd/files/S49ntpd
@@ -0,0 +1,3 @@
+#!/bin/sh
+mkdir -p `grep "^ntp:" /etc/passwd | cut -d: -f6`
+/usr/sbin/ntpd -s
diff --git a/openwrt/package/openntpd/files/ntpd.conf b/openwrt/package/openntpd/files/ntpd.conf
new file mode 100644
index 0000000..6993b8e
--- /dev/null
+++ b/openwrt/package/openntpd/files/ntpd.conf
@@ -0,0 +1,3 @@
+# use a random selection of 8 public stratum 2 servers
+# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
+servers pool.ntp.org
diff --git a/openwrt/package/openntpd/openntpd.control b/openwrt/package/openntpd/openntpd.control
new file mode 100644
index 0000000..46e857a
--- /dev/null
+++ b/openwrt/package/openntpd/openntpd.control
@@ -0,0 +1,8 @@
+Package: openntpd
+Priority: optional
+Section: net
+Version: 1.0-1
+Architecture: mipsel
+Maintainer: Foo Bar <openntpd@bar>
+Source: buildroot internal
+Description: openntpd template package