summaryrefslogtreecommitdiff
path: root/packages/miau/miau_0.5.3.bb
blob: 3da4e457af29cbaf94234993dcef9977365ed428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
DESCRIPTION = "MIAU IRC Bouncer"
SECTION = "network"
PRIORITY = "optional"
HOMEPAGE = "http://sf.net/project/miau/"
LICENSE = "GPL"
FILE_PR = "r2"

SRC_URI = "${SOURCEFORGE_MIRROR}/miau/miau-${PV}.tar.gz \
           file://paths.patch;patch=1 \
	   file://miau.init"
S = "${WORKDIR}/miau-${PV}"

inherit autotools update-rc.d

INITSCRIPT_NAME = "miau"
INITSCRIPT_PARAMS = "defaults 80"

EXTRA_OECONF = "\
		--enable-dccbounce \
		--enable-automode \
		--enable-releasenick \
		--enable-ctcp-replies \
		--enable-mkpasswd \
		--enable-uptime \
		--enable-chanlog \
		--enable-privlog \
		--enable-onconnect \
		--enable-empty-awaymsg \
		--enable-enduserdebug \
		--enable-pingstat \
		--enable-dumpstatus \
	"

do_install_append() {
	install -d ${D}${localstatedir}/spool/miau
	install -d ${D}${sysconfdir}/init.d
	install -m 0644 ${S}/misc/miaurc ${D}${sysconfdir}/miau.conf
	install -m 0755 ${WORKDIR}/miau.init ${D}${sysconfdir}/init.d/miau
}

CONFFILES_${PN} = "${sysconfdir}/miau.conf"