packages: add rsync package
[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
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/reaim
17 PKG_MD5SUM:=647d2ab72ec454f89294accfb3182c09
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/reaim
25 SUBMENU:=Instant Messaging
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+iptables
29 TITLE:=A transparent AIM / MSN proxy
30 URL:=http://reaim.sourceforge.net/
31 endef
32
33 define Package/reaim/description
34 ReAIM is a proxy for file transfers with MSN/AIM.
35 endef
36
37 define Build/Compile
38 $(call Build/Compile/Default, \
39 CFLAGS="$(TARGET_CFLAGS)" \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 all install \
42 )
43 endef
44
45 define Package/reaim/install
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/reaim $(1)/usr/sbin/
48 $(INSTALL_DIR) $(1)/etc/init.d
49 $(INSTALL_BIN) ./files/reaim.init $(1)/etc/init.d/reaim
50 endef
51
52 $(eval $(call BuildPackage,reaim))