2 Commits

Author SHA1 Message Date
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
2 changed files with 10 additions and 7 deletions

View File

@@ -11,10 +11,11 @@
DEPENDS = glibc DEPENDS = glibc
ARCH = x86_64 ARCH = x86_64
URL = https://savannah.nongnu.org/projects/sysvinit URL = https://savannah.nongnu.org/projects/sysvinit
REPO = core
BRIEF = System that manages boot and shutdown BRIEF = System that manages boot and shutdown
DESC = System V style init programs original written by Miquel van Smoorenburg \ DESC = System V style init programs original written by Miquel van Smoorenburg \
that control the booting and shutdown of your system that control the booting and shutdown of your system
SNAPVER = 8 SNAPVER = 10
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
@@ -55,7 +56,9 @@ $(ROOT): $(SRCDIR)/src/init
@cd $(SRCDIR) && make -C src install ROOT=$(ROOT) && \ @cd $(SRCDIR) && make -C src install ROOT=$(ROOT) && \
install -v -d -m 755 $(ROOT)/usr/share/sysvinit && \ 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 && \
install -v -m 644 $(SNAPDIR)/inittab $(ROOT)/usr/share/sysvinit && \
ln -sv ../sbin/killall5 $(ROOT)/bin/pidof
clean: clean:
@rm -rvf $(ROOT) \ @rm -rvf $(ROOT) \

View File

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