5 Commits

Author SHA1 Message Date
Jay Larson
2d6e1ed413 Added cleanup of SNAP/config.tar.gz to Makefile 2018-10-01 16:59:05 -05:00
Jay Larson
1d78033ebe The following changes were made:
* moved directory creation to package itself instead of usher
  * moved inittab installation from usher to CONFIG
2018-09-30 19:33:42 -05:00
Jay Larson
c3b800bc9c Added symlink for pidof -> killall5 which seems to work better than props-ng 2018-05-26 15:13:55 -05:00
Jay Larson
69a8473bec The following changes were made:
* Added REPO to Makefile
  * usher now uses /bin/sh
  * Removed TARGET from usher
2018-03-29 13:04:07 -05:00
Jay Larson
f0c072202c Corrected bug in usher where /etc/rc* directories were not properly created 2017-10-17 15:19:06 -05:00
3 changed files with 9 additions and 25 deletions

View File

@@ -11,10 +11,11 @@
DEPENDS = glibc
ARCH = x86_64
URL = https://savannah.nongnu.org/projects/sysvinit
REPO = core
BRIEF = System that manages boot and shutdown
DESC = System V style init programs original written by Miquel van Smoorenburg \
that control the booting and shutdown of your system
SNAPVER = 7
SNAPVER = 12
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
@@ -54,13 +55,19 @@ $(ROOT): $(SRCDIR)/src/init
fi
@cd $(SRCDIR) && make -C src install ROOT=$(ROOT) && \
for char in S 0 1 2 3 4 5 6; do \
install -v -d -m 755 $(ROOT)/etc/rc$$char.d; \
done && \
install -v -d -m 755 $(ROOT)/etc/init.d && \
install -v -d -m 755 $(ROOT)/usr/share/sysvinit && \
install -v -m 644 $(SNAPDIR)/inittab $(ROOT)/usr/share/sysvinit
install -v -d -m 755 $(ROOT)/bin && \
ln -sv ../sbin/killall5 $(ROOT)/bin/pidof
clean:
@rm -rvf $(ROOT) \
$(SNAPINFO) \
$(MANIFEST) \
$(FILES) \
$(CONFIG) \
$(SRCDIR)

View File

@@ -1,23 +0,0 @@
#!/bin/bash
set -e
case $1 in
preinst)
exit 0
;;
postinst)
install -d -m 755 ${TARGET}/etc/init.d
install -d -m 755 ${TARGET}/etc/rc{[0-6],S}.d
if [ ! -f ${TARGET}/etc/inittab ]; then
install -m 644 ${TARGET}/usr/share/sysvinit/inittab ${TARGET}/etc/inittab
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac