void-packages/srcpkgs/incron/template

26 lines
822 B
Bash
Raw Normal View History

2015-04-20 10:01:58 +00:00
# Template file for 'incron'
pkgname=incron
version=0.5.10
2015-06-02 14:59:47 +00:00
revision=2
2015-04-20 10:01:58 +00:00
make_dirs="/var/spool/incron 0755 root root
/etc/incron.d 0755 root root"
short_desc="A daemon that executes commands due to inotify events"
maintainer="allan <mail@may.mooo.com>"
license="GPL-2, LGPL-2.1"
homepage="http://inotify.aiken.cz"
distfiles="http://inotify.aiken.cz/download/incron/incron-${version}.tar.gz"
checksum=5d4abadb5f16c26e4f728a6433ad22f7655663b5812fbd4f94e852050f38e78a
2015-06-02 14:59:47 +00:00
do_build() {
sed -i 's,sbin,bin,g' Makefile
2015-04-20 10:01:58 +00:00
sed -i '1,1i#include <unistd.h>' inotify-cxx.cpp icd-main.cpp
sed -i '1,1i#include <stdio.h>' icd-main.cpp inotify-cxx.cpp \
usertable.cpp appargs.cpp
sed -i 's|strchr(s,|(char*)strchr(s,|' incroncfg.cpp
2015-06-02 14:59:47 +00:00
make CC=$CC ${makejobs}
2015-04-20 10:01:58 +00:00
}
2015-06-02 14:59:47 +00:00
do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install
2015-04-20 10:01:58 +00:00
vsv incron
}