38468716332a6a1340bd0093e98771c74602c3af
[openwrt/svn-archive/archive.git] / net / reaim / Makefile
1 #
2 # Copyright (C) 2006 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:=reaim
12 PKG_VERSION:=0.8
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=647d2ab72ec454f89294accfb3182c09
15
16 PKG_SOURCE_URL:=@SF/reaim
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/reaim
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+iptables
29 TITLE:=A transparent AIM / MSN proxy
30 DESCRIPTION:=ReAIM is a proxy for file transfers with MSN/AIM.
31 URL:=http://reaim.sourceforge.net
32 endef
33
34 define Build/Compile
35 $(call Build/Compile/Default, \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 DESTDIR="$(PKG_INSTALL_DIR)" \
38 all install \
39 )
40 endef
41
42 define Package/reaim/install
43 install -d -m0755 $(1)/etc/init.d
44 install -m0755 ./files/reaim.init $(1)/etc/init.d/reaim
45 install -d -m0755 $(1)/usr/sbin
46 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/reaim $(1)/usr/sbin/
47 endef
48
49 $(eval $(call BuildPackage,reaim))