PKG_NAME:=babel
PKG_VERSION:=0.94
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/babel $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) ./files/babel.conf $(1)/etc/
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/babel.init $(1)/etc/init.d/babel
endef
$(eval $(call BuildPackage,babel))
}
start() {
- if [ -x /etc/init.d/ahcpd ] ; then
+ if [ -x /etc/rc.d/S71ahcpd ] ; then
echo 'Not starting babel -- will be started by ahcpd.'
exit 0
fi
if [ -e $pidfile ] ; then
echo "$pidfile exists -- not starting babel." >&2
else
- /usr/bin/babel -D -I $pidfile $interfaces
+ /usr/sbin/babel -D -I $pidfile $interfaces
fi
}
[ -e $pidfile ] && kill $(cat $pidfile)
[ -e $pidfile ] && sleep 2
[ -e $pidfile ] && sleep 4
- [ -e $pidfile ] && echo "Failed to stop ahcpd ($pidfile still exists)."
+ [ -e $pidfile ] && echo "Failed to stop babel ($pidfile still exists)."
}