Browse Source

- tuxcal/tuxmail: use init scripts from ni-neutrino-plugins repo

master
vanhofen 6 years ago
parent
commit
d3594d8ca3
  1. 22
      archive-imagefiles/scripts/tuxcald.init
  2. 2
      archive-imagefiles/scripts/tuxmail.onreadmail
  3. 23
      archive-imagefiles/scripts/tuxmaild.init
  4. 26
      make/plugins.mk

22
archive-imagefiles/scripts/tuxcald.init

@ -1,22 +0,0 @@
#!/bin/sh
. /etc/init.d/globals
case $1 in
start)
if [ -e /var/etc/.tuxcald ]; then
SHOWINFO "starting ..."
/bin/tuxcald
fi
;;
stop)
if [ -e /var/etc/.tuxcald ]; then
SHOWINFO "stopping ..."
pid=$(cat /var/run/tuxcald.pid 2>/dev/null)
test -n "$pid" && kill $pid || true
fi
;;
*)
echo "[$BASENAME] Usage: $0 {start|stop}"
;;
esac

2
archive-imagefiles/scripts/tuxmail.onreadmail

@ -1,2 +0,0 @@
#!/bin/sh
#

23
archive-imagefiles/scripts/tuxmaild.init

@ -1,23 +0,0 @@
#!/bin/sh
. /etc/init.d/globals
case $1 in
start)
if [ -e /var/etc/.tuxmaild ]; then
SHOWINFO "starting ..."
/bin/tuxmaild
sleep 1
fi
;;
stop)
if [ -e /var/etc/.tuxmaild ]; then
SHOWINFO "stopping ..."
pid=$(cat /var/run/tuxmail.pid 2>/dev/null)
test -n "$pid" && kill $pid || true
fi
;;
*)
echo "[$BASENAME] Usage: $0 {start|stop}"
;;
esac

26
make/plugins.mk

@ -363,13 +363,13 @@ $(BIN)/tuxcald: $(D)/freetype $(BIN) $(ETCINITD) $(VARCONFIG)
tuxcald.c \ tuxcald.c \
\ \
-o $@ && \ -o $@ && \
install -m755 $(IMAGEFILES)/scripts/tuxcald.init $(ETCINITD)/tuxcald && \ install -m755 tuxcald $(ETCINITD)/
cd $(ETCINITD) && \ cd $(ETCINITD) && \
ln -sf tuxcald S99tuxcald && \ ln -sf tuxcald S99tuxcald && \
ln -sf tuxcald K01tuxcald && \ ln -sf tuxcald K01tuxcald
pushd $(SOURCE_DIR)/$(NI_NEUTRINO-PLUGINS)/tuxcal && \ install -d $(VARCONFIG)/tuxcal
mkdir -p $(VARCONFIG)/tuxcal && \ install -m644 $(SOURCE_DIR)/$(NI_NEUTRINO-PLUGINS)/tuxcal/tuxcal.conf $(VARCONFIG)/tuxcal/
install -m644 tuxcal.conf $(VARCONFIG)/tuxcal/ install -m755 $(SOURCE_DIR)/$(NI_NEUTRINO-PLUGINS)/tuxcal/tuxcal.notify $(VARCONFIG)/tuxcal/
$(LIBPLUGINS)/tuxcal.so: $(LIBPLUGINS) $(LIBPLUGINS)/tuxcal.so: $(LIBPLUGINS)
pushd $(SOURCE_DIR)/$(NI_NEUTRINO-PLUGINS)/tuxcal && \ pushd $(SOURCE_DIR)/$(NI_NEUTRINO-PLUGINS)/tuxcal && \
@ -416,15 +416,13 @@ $(BIN)/tuxmaild: $(D)/freetype $(D)/openssl $(BIN) $(ETCINITD) $(VARCONFIG)
tuxmaild.c \ tuxmaild.c \
\ \
-o $@ && \ -o $@ && \
install -m755 $(IMAGEFILES)/scripts/tuxmaild.init $(ETCINITD)/tuxmaild && \ install -m755 tuxmaild $(ETCINITD)/
cd $(ETCINITD) && \ cd $(ETCINITD) && \
ln -sf tuxmaild S99tuxmaild && \ ln -sf tuxmaild S99tuxmaild && \
ln -sf tuxmaild K01tuxmaild && \ ln -sf tuxmaild K01tuxmaild
pushd $(SOURCE_DIR)/$(NI_NEUTRINO-PLUGINS)/tuxmail && \ install -d $(VARCONFIG)/tuxmail
mkdir -p $(VARCONFIG)/tuxmail && \ install -m644 $(SOURCE_DIR)/$(NI_NEUTRINO-PLUGINS)/tuxmail/tuxmail.conf $(VARCONFIG)/tuxmail/
install -m644 tuxmail.conf $(VARCONFIG)/tuxmail/ && \ install -m755 $(SOURCE_DIR)/$(NI_NEUTRINO-PLUGINS)/tuxmail/tuxmail.onreadmail $(VARCONFIG)/tuxmail/
pushd $(IMAGEFILES)/scripts && \
install -m755 tuxmail.onreadmail $(VARCONFIG)/tuxmail/
$(LIBPLUGINS)/tuxmail.so: $(LIBPLUGINS) $(LIBPLUGINS)/tuxmail.so: $(LIBPLUGINS)
pushd $(SOURCE_DIR)/$(NI_NEUTRINO-PLUGINS)/tuxmail && \ pushd $(SOURCE_DIR)/$(NI_NEUTRINO-PLUGINS)/tuxmail && \

Loading…
Cancel
Save