aa5c9dda369ca354d6a2fa00fbc9d900d039c243
[openwrt/svn-archive/archive.git] / net / miau / 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:=miau
12 PKG_VERSION:=0.6.4
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/miau
17 PKG_MD5SUM:=6ee1b23fe55b46988d0714021b0ff76c
18 PKG_CAT:=bzcat
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/miau
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Another IRC-bouncer/proxy
29 DESCRIPTION:=\
30 In short, miau is an IRC-bouncer/proxy.\\\
31 Being more verbose, miau is small but quite featured \\\
32 IRC-bouncer - a service bit like HTTP-proxy, but \\\
33 for IRC-networks.
34 URL:=http://sourceforge.net/projects/miau/
35 endef
36
37 CONFIGURE_ARGS += \
38 --enable-automode \
39 --enable-releasenick \
40 --enable-uptime \
41 --enable-privlog \
42 --enable-onconnect
43
44 MAKE_FLAGS += \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install
47
48 define Package/miau/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_DIR) $(1)/etc/default
53 $(INSTALL_DIR) $(1)/etc/miau
54 $(INSTALL_BIN) ./files/miau.init $(1)/etc/init.d/miau
55 $(INSTALL_DATA) ./files/miau $(1)/etc/default/miau
56 $(INSTALL_DATA) ./files/miaurc $(1)/etc/miau/miaurc
57 endef
58
59 $(eval $(call BuildPackage,miau))