diff options
author | Waldemar Brodkorb <wbx@openwrt.org> | 2005-03-23 09:41:29 +0000 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openwrt.org> | 2005-03-23 09:41:29 +0000 |
commit | 7226afdcb36f8e015b6ccc90657665609db474b7 (patch) | |
tree | 801b81a14199515b6e73b54010689acc7aff74f4 /package/openntpd/Makefile | |
parent | ac8f1ec2daedd0d7f1b7c7e7e62c932307f285a8 (diff) | |
download | upstream-7226afdcb36f8e015b6ccc90657665609db474b7.tar.gz upstream-7226afdcb36f8e015b6ccc90657665609db474b7.tar.bz2 upstream-7226afdcb36f8e015b6ccc90657665609db474b7.zip |
add openntpd. sort list of packages alphabetically in Makefile.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@422 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/openntpd/Makefile')
-rw-r--r-- | package/openntpd/Makefile | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/package/openntpd/Makefile b/package/openntpd/Makefile new file mode 100644 index 0000000000..8094e5ef7a --- /dev/null +++ b/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) |