cleanup
[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.0.2
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=1b78d219a03655399c165eeb021cddd8
15
16 PKG_SOURCE_URL:= @SF/miau
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/miau
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Another IRC-bouncer/proxy
29 DESCRIPTION:=In short, miau is an IRC-bouncer/proxy.\\\
30 Being more verbose, miau is small but quite featured\\\
31 IRC-bouncer - a service bit like HTTP-proxy, but\\\
32 for IRC-networks.\\\
33 URL:=http://sourceforge.net/projects/miau/
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --enable-automode \
39 --enable-releasenick \
40 --enable-uptime \
41 --enable-privlog \
42 --enable-onconnect \
43 )
44 endef
45
46
47 define Build/Compile
48 $(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" install)
49 endef
50
51 define Package/miau/install
52 install -d -m0755 $(1)/usr/bin
53 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
54 install -d -m0755 $(1)/etc/init.d
55 install -d -m0755 $(1)/etc/default
56 install -d -m0755 $(1)/etc/miau
57 install -m0755 ./files/miau.init $(1)/etc/init.d/miau
58 install -m0644 ./files/miau $(1)/etc/default/miau
59 install -m0644 ./files/miaurc $(1)/etc/miau/miaurc
60 endef
61
62 $(eval $(call BuildPackage,miau))