build 467 Bytes
Newer Older
gsell's avatar
gsell committed
1
#!/usr/bin/env modbuild
gsell's avatar
gsell committed
2

gsell's avatar
gsell committed
3
pbuild::configure() {
4
	cd "${MODULE_SRCDIR}"
gsell's avatar
gsell committed
5 6 7 8 9 10 11 12 13
	./configure \
		--prefix="${PREFIX}" \
		--with-libpcap=included \
		--with-libpcre=included \
		--with-libdnet=included \
		--with-liblua=included \
		--with-liblinear=included
}

gsell's avatar
gsell committed
14
pbuild::build() {
15
	cd "${MODULE_SRCDIR}"
gsell's avatar
gsell committed
16 17 18
	make -j "${JOBS}"
}

gsell's avatar
gsell committed
19
pbuild::install() {
20
	cd "${MODULE_SRCDIR}"
gsell's avatar
gsell committed
21 22 23
	make install
}

gsell's avatar
gsell committed
24 25 26
pbuild::add_to_group 'System'
pbuild::set_build_dependencies "${COMPILER}"
pbuild::make_all