[package] lvm2: add new mirror and fix shared library installation
[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 include $(INCLUDE_DIR)/package.mk
22
23 PKG_UNPACK += && mv $(PKG_BUILD_DIR)/../admin/* $(PKG_BUILD_DIR)/.. && rmdir $(PKG_BUILD_DIR)/../admin
24
25 define Package/daemontools
26 SECTION:=utils
27 CATEGORY:=Utilities
28 DEPENDS:=
29 TITLE:=Tools for managing UNIX services
30 URL:=http://cr.yp.to/daemontools.html
31 endef
32
33 define Package/daemontools/description
34 Daemontools is a collection of tools for managing UNIX services by DJ Bernstein.
35 endef
36
37 define Build/Compile
38 cd $(PKG_BUILD_DIR) && \
39 TARGET_CC="$(TARGET_CC)" \
40 TARGET_CFLAGS="$(TARGET_CFLAGS)" \
41 TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \
42 $(PKG_BUILD_DIR)/package/compile
43 endef
44
45 define Package/daemontools/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/command/* $(1)/usr/bin
48 endef
49
50 $(eval $(call BuildPackage,daemontools))
51