summaryrefslogtreecommitdiff
path: root/redhat/rules
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/rules')
-rw-r--r--redhat/rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/redhat/rules b/redhat/rules
index a0ddd8d..c8e923f 100644
--- a/redhat/rules
+++ b/redhat/rules
@@ -14,3 +14,16 @@ Irbox comes with a database of the codes emitted by a number of TV, VCR and
cable TV infra-red remote controls, and emits explicit textual messages on an
Ivy bus every time a button is depressed. Remote controls of different types
can be used concurrently, and are distinguished by Irbox.";
+
+$Install = "rm -rf \$RPM_BUILD_ROOT
+cd src
+make PREFIX=\$RPM_BUILD_ROOT install
+cd ..
+mkdir -p \$RPM_BUILD_ROOT/etc/rc.d/init.d
+install -m 755 redhat/irbox.init \$RPM_BUILD_ROOT/etc/rc.d/init.d/irbox
+install -m 644 redhat/irbox.conf \$RPM_BUILD_ROOT/etc
+find \$RPM_BUILD_ROOT -type f -print | sed \"s\@^\$RPM_BUILD_ROOT\@\@g\" > $Name-\%{version}-filelist
+find \$RPM_BUILD_ROOT -type l -print | sed \"s\@^\$RPM_BUILD_ROOT\@\@g\" >> $Name-\%{Version}-filelist";
+$Post = "/sbin/chkconfig --add irbox";
+$Preun = "/sbin/chkconfig --del irbox";
+