From 8ec8462ce3a0ac2cac4bdb70daaaeb98aaea4cbc Mon Sep 17 00:00:00 2001 From: Timo Eissler Date: Sun, 18 Aug 2013 13:30:03 +0200 Subject: [PATCH] xinetd: New package. --- config/rootfiles/packages/xinetd | 11 +++++ config/xinetd/xinetd.conf | 9 ++++ lfs/xinetd | 85 ++++++++++++++++++++++++++++++++ make.sh | 1 + src/paks/xinetd/install.sh | 34 +++++++++++++ src/paks/xinetd/uninstall.sh | 27 ++++++++++ src/paks/xinetd/update.sh | 26 ++++++++++ 7 files changed, 193 insertions(+) create mode 100644 config/rootfiles/packages/xinetd create mode 100644 config/xinetd/xinetd.conf create mode 100644 lfs/xinetd create mode 100644 src/paks/xinetd/install.sh create mode 100644 src/paks/xinetd/uninstall.sh create mode 100644 src/paks/xinetd/update.sh diff --git a/config/rootfiles/packages/xinetd b/config/rootfiles/packages/xinetd new file mode 100644 index 0000000000..4c91ec99cd --- /dev/null +++ b/config/rootfiles/packages/xinetd @@ -0,0 +1,11 @@ +etc/rc.d/init.d/xinetd +etc/xinetd.conf +#etc/xinetd.d +#usr/man/man5/xinetd.conf.5 +#usr/man/man8/itox.8 +#usr/man/man8/xconv.pl.8 +#usr/man/man8/xinetd.8 +#usr/man/man8/xinetd.log.8 +#usr/sbin/itox +#usr/sbin/xconv.pl +usr/sbin/xinetd diff --git a/config/xinetd/xinetd.conf b/config/xinetd/xinetd.conf new file mode 100644 index 0000000000..b2112a19fb --- /dev/null +++ b/config/xinetd/xinetd.conf @@ -0,0 +1,9 @@ +defaults +{ + instances = 10 + log_type = SYSLOG daemon + log_on_success = HOST PID + log_on_failure = HOST + #only_from = +} +includedir /etc/xinetd.d diff --git a/lfs/xinetd b/lfs/xinetd new file mode 100644 index 0000000000..62f34eabba --- /dev/null +++ b/lfs/xinetd @@ -0,0 +1,85 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 2.3.15 + +THISAPP = xinetd-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = xinetd +PAK_VER = 1 + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 77358478fd58efa6366accae99b8b04c + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure --prefix=/usr + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + -mkdir -pv /etc/xinetd.d + cp -f $(DIR_SRC)/config/xinetd/xinetd.conf /etc/xinetd.conf + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 50a58782d1..bf00b5f34a 100755 --- a/make.sh +++ b/make.sh @@ -752,6 +752,7 @@ buildipfire() { ipfiremake acpid ipfiremake fping ipfiremake telnet + ipfiremake xinetd ipfiremake libgpg-error ipfiremake libassuan ipfiremake gpgme diff --git a/src/paks/xinetd/install.sh b/src/paks/xinetd/install.sh new file mode 100644 index 0000000000..347fd368cb --- /dev/null +++ b/src/paks/xinetd/install.sh @@ -0,0 +1,34 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +extract_files +restore_backup ${NAME} + +mkdir /etc/xinetd.d + +start_service --background ${NAME} + +ln -sf ../init.d/${NAME} /etc/rc.d/rc0.d/K30xinetd +ln -sf ../init.d/${NAME} /etc/rc.d/rc3.d/S30xinetd +ln -sf ../init.d/${NAME} /etc/rc.d/rc6.d/K30xinetd diff --git a/src/paks/xinetd/uninstall.sh b/src/paks/xinetd/uninstall.sh new file mode 100644 index 0000000000..a7b8a5370f --- /dev/null +++ b/src/paks/xinetd/uninstall.sh @@ -0,0 +1,27 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +stop_service ${NAME} +make_backup ${NAME} +remove_files diff --git a/src/paks/xinetd/update.sh b/src/paks/xinetd/update.sh new file mode 100644 index 0000000000..89c40d0d7c --- /dev/null +++ b/src/paks/xinetd/update.sh @@ -0,0 +1,26 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +./uninstall.sh +./install.sh -- 2.39.2