summaryrefslogtreecommitdiffstats
path: root/extra/brltty/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/brltty/Pkgfile')
-rw-r--r--extra/brltty/Pkgfile15
1 files changed, 12 insertions, 3 deletions
diff --git a/extra/brltty/Pkgfile b/extra/brltty/Pkgfile
index 0cf92a63f..72827fb4a 100644
--- a/extra/brltty/Pkgfile
+++ b/extra/brltty/Pkgfile
@@ -22,11 +22,20 @@ build() {
--disable-java-bindings \
--disable-caml-bindings
make
- make DESTDIR=$PKG install
-
-# install -D -m 755 $SRC/brltty $PKG/etc/rc.d/init.d/brltty
+ make INSTALL_ROOT=$PKG install
+ mkdir -p $PKG/etc/rc.d/init.d
+ install -D -m 755 $SRC/brltty $PKG/etc/rc.d/init.d/brltty
install -D -m 644 $SRC/brltty.conf $PKG/etc/conf.d/brltty.conf
install -D -m 644 Documents/brltty.conf $PKG/etc/brltty.conf
+ mkdir -p $PKG/etc/rc.d/rc{0,1,2,3,4,5,6}.d
+ for i in 2 3 4 5;
+ do
+ ln -s ../init/$name $PKG/etc/rc.d/rc$i.d/S10$name
+ done
+ for i in 0 1 6;
+ do
+ ln -s ../init/$name $PKG/etc/rc.d/rc$i.d/K99$name
+ done
}