packages: Use $(CP) instead of $(INSTALL_BIN) for binaries.
[openwrt/svn-archive/archive.git] / net / dircproxy / Makefile
1 #
2 # Copyright (C) 2006,2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=dircproxy
12 PKG_VERSION:=1.2.0-beta2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz
16 PKG_SOURCE_URL:=http://dircproxy.securiweb.net/pub/1.2/
17 PKG_MD5SUM:=850443437f709276ff21a173bbf98456
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/dircproxy
25 SUBMENU:=Instant Messaging
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=An IRC proxy server
29 URL:=http://dircproxy.securiweb.net/
30 endef
31
32 # uses Build/Configure/Default
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 DESTDIR="$(PKG_INSTALL_DIR)" \
37 all install
38 endef
39
40 define Package/dircproxy/install
41 $(INSTALL_DIR) $(1)/usr/bin
42 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dircproxy{,-crypt} $(1)/usr/bin/
43 endef
44
45 $(eval $(call BuildPackage,dircproxy))