added djb daemontools patch provided by Johnny Halfmoon
[openwrt/svn-archive/archive.git] / utils / daemontools / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 # Original port by FreeWRT project.
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8 # Alexander Tsvyashchenko Created OpenWRT package as per Trac ticket 2497
9 #
10
11 include $(TOPDIR)/rules.mk
12
13 PKG_NAME:=daemontools
14 PKG_VERSION:=0.76
15 PKG_RELEASE:=1
16
17 PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
18 PKG_SOURCE_URL:=http://cr.yp.to/daemontools/
19 PKG_MD5SUM:=1871af2453d6e464034968a0fbcb2bfc
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 PKG_UNPACK += && mv $(PKG_BUILD_DIR)/../admin/* $(PKG_BUILD_DIR)/.. && rmdir $(PKG_BUILD_DIR)/../admin
26
27 define Package/daemontools
28 SECTION:=utils
29 CATEGORY:=Utilities
30 DEPENDS:=
31 TITLE:=Tools for managing UNIX services
32 URL:=http://cr.yp.to/daemontools.html
33 endef
34
35 define Package/daemontools/description
36 Daemontools is a collection of tools for managing UNIX services by DJ Bernstein.
37 endef
38
39 define Build/Compile
40 cd $(PKG_BUILD_DIR) && \
41 TARGET_CC="$(TARGET_CC)" \
42 TARGET_CFLAGS="$(TARGET_CFLAGS)" \
43 TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \
44 $(PKG_BUILD_DIR)/package/compile
45 endef
46
47 define Package/daemontools/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/command/* $(1)/usr/bin
50 endef
51
52 $(eval $(call BuildPackage,daemontools))
53