diff options
-rw-r--r-- | redhat/irbox.tmpl | 17 | ||||
-rw-r--r-- | redhat/irbox.ver | 2 | ||||
-rw-r--r-- | src/Makefile | 20 |
3 files changed, 39 insertions, 0 deletions
diff --git a/redhat/irbox.tmpl b/redhat/irbox.tmpl new file mode 100644 index 0000000..9669904 --- /dev/null +++ b/redhat/irbox.tmpl @@ -0,0 +1,17 @@ +#!/usr/bin/perl + +$Summary = "IRBOX, an Ivy driver for infra-red remote controls"; +$Name = "irbox"; +$Copyright = "CENA"; +$Vendor = "Centre d'Etudes de la Navigation Aerienne"; +$Distribution = "Toccata"; +$Group = "Hard Communications"; +$Source = "$Name-$Version.tar.gz"; +$Url = "http://www.cenatoulouse.dgac.fr/"; +$BuildRoot = "/var/tmp/irbox-buildroot/"; +$Requires = "ivy-c"; +$Description = "IRBOX, an Ivy driver for infra-red remote controls"; + +@ChangeLog = ("\n"); + +1; diff --git a/redhat/irbox.ver b/redhat/irbox.ver new file mode 100644 index 0000000..d8b51e5 --- /dev/null +++ b/redhat/irbox.ver @@ -0,0 +1,2 @@ +$Version = 1.0; +$Release = 1; diff --git a/src/Makefile b/src/Makefile index 10065da..b047ec0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -47,3 +47,23 @@ lex.yy.o: lex.yy.c y.tab.h clean: -/bin/rm -f *.a *.o *.out *.bak *.yy.* *.tab.* *.log irbox + +install: all + test -d $(PREFIX)/usr/bin || mkdirhier $(PREFIX)/usr/bin + test -d $(PREFIX)$(IRBOX_DIR) || mkdirhier $(PREFIX)$(IRBOX_DIR) + test -d $(PREFIX)/etc/rc.d/init.d || mkdirhier $(PREFIX)/etc/rc.d/init.d + test -d $(PREFIX)/etc/rc.d/rc2.d || mkdirhier $(PREFIX)/etc/rc.d/rc2.d + test -d $(PREFIX)/etc/rc.d/rc3.d || mkdirhier $(PREFIX)/etc/rc.d/rc3.d + test -d $(PREFIX)/etc/rc.d/rc4.d || mkdirhier $(PREFIX)/etc/rc.d/rc4.d + test -d $(PREFIX)/etc/rc.d/rc5.d || mkdirhier $(PREFIX)/etc/rc.d/rc5.d + install -m755 irbox.init $(PREFIX)/etc/rc.d/init.d/irbox + ln -s $(PREFIX)/etc/rc.d/init.d/irbox $(PREFIX)/etc/rc.d/rc2.d/S98irbox + ln -s $(PREFIX)/etc/rc.d/init.d/irbox $(PREFIX)/etc/rc.d/rc3.d/S98irbox + ln -s $(PREFIX)/etc/rc.d/init.d/irbox $(PREFIX)/etc/rc.d/rc4.d/S98irbox + ln -s $(PREFIX)/etc/rc.d/init.d/irbox $(PREFIX)/etc/rc.d/rc5.d/S98irbox + install -m755 irbox.conf $(PREFIX)/etc/ + install -m755 irbox $(PREFIX)/usr/bin + for f in `find ../data -type f -maxdepth 1`; do \ + install -m 644 $$f $(PREFIX)$(IRBOX_DIR); \ + done + |