From patchwork Mon Mar 20 20:18:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gerd Hoerst X-Patchwork-Id: 6714 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4PgQzx2KYNz3x6w for ; Mon, 20 Mar 2023 20:18:53 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4PgQzv47gnztZ; Mon, 20 Mar 2023 20:18:51 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4PgQzv1yYRz2yW1; Mon, 20 Mar 2023 20:18:51 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4PgQzt0srkz2xFy for ; Mon, 20 Mar 2023 20:18:50 +0000 (UTC) Received: from vserver.hoerst.net (vserver.hoerst.net [37.120.166.63]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4PgQzr4HmlzK1 for ; Mon, 20 Mar 2023 20:18:48 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=hoerst.net header.s=ed25519 header.b=Me2EBigm; dkim=pass header.d=hoerst.net header.s=default header.b="Su0O/0o9"; dkim=pass header.d=hoerst.net header.s=ed25519local header.b=197NsmC6; dkim=pass header.d=hoerst.net header.s=local header.b=EOsdi8y0; spf=pass (mail01.ipfire.org: domain of gerd@hoerst.net designates 37.120.166.63 as permitted sender) smtp.mailfrom=gerd@hoerst.net; dmarc=pass (policy=quarantine) header.from=hoerst.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1679343528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=ewSdEg+Ikgi8AL2dWLlcwUpfE5PNB2GvriKgtBw1Oa8=; b=OsjeR1q2XsdNixJU5dZaMuhHYyQnzMV6UxVVvngkrb1wzQtDjcC/49Ve7n1Ih5coh6zUop 7q7piyHYngqnCz+QbZyO4tQX7pS81sHa8efW4q+H/kI3pw+psMAgCeJAgu4N7qfqHZMTzB TjKh8HRAupZzddHj/x1Di7g0kF8K3BWXgjhRaXFurj6UsiqshWwxwiphzSyykZUxuCLv7y SZjP1y/AePw68fnD9qwlpgagYW5l4GF9ufgWAP9z9BAKJW/MEdN1a/JC9SEwmIqIMRjiSk YhiE73XwTe7nD9O/koNeudDVrYDmiuzH3NpQE1ywHSWH/Y7HYCZoWQHlqZg0oA== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=hoerst.net header.s=ed25519 header.b=Me2EBigm; dkim=pass header.d=hoerst.net header.s=default header.b="Su0O/0o9"; dkim=pass header.d=hoerst.net header.s=ed25519local header.b=197NsmC6; dkim=pass header.d=hoerst.net header.s=local header.b=EOsdi8y0; spf=pass (mail01.ipfire.org: domain of gerd@hoerst.net designates 37.120.166.63 as permitted sender) smtp.mailfrom=gerd@hoerst.net; dmarc=pass (policy=quarantine) header.from=hoerst.net ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1679343528; a=rsa-sha256; cv=none; b=vZkKR/y6Qay7O11iocg9SvU/+UhKWH4Ui6ewtSIdbYGBneLKJsneQlQQA50mXsVfvPhjsx qBlXfMkfvhW3mQxuiqm5a+rGSAqK40WIFtLwu5nBasoWGiYT/dmixSH5NJHP/OGMKbFE9x uqEBW7+UJMqUhfvKdjacJmxUFmC/g+ih//wqoYYUQUyOLoJVRc1t7z3FhpJKAHdvGFLzY0 G/87TewIfRi4jNxz4NHjnHS2hhzBG4RGMNpxnnU80bW/emeHwepvgbK09rJHhDTvre7RQH cMoFLzZfr8Av3l5ORAVX6ZHKac1gUJvhVFT+M7hzK4xDpi7WQdiBa5UXhkVc0Q== Received: from localhost (localhost [127.0.0.1]) by vserver.hoerst.net (Postfix) with ESMTP id 9013F161044 for ; Mon, 20 Mar 2023 21:18:47 +0100 (CET) Received: from vserver.hoerst.net ([IPv6:::1]) by localhost (vserver.hoerst.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id j-wa1CcmRJFe for ; Mon, 20 Mar 2023 21:18:47 +0100 (CET) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=hoerst.net; i=@hoerst.net; q=dns/txt; s=ed25519; t=1679343527; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding : from; bh=MP7T3rSGcOGzBYu0Oec015rS650TD0pDYfd2mEtzEqQ=; b=Me2EBigm2lIzouKjzDsWBdrCT+SlWr6l+F014YI+sEAcDmWsON/1TfMmnU19LuQ91+nCq dCb4FOuJ0JloMKHAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hoerst.net; i=@hoerst.net; q=dns/txt; s=default; t=1679343527; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding : from; bh=MP7T3rSGcOGzBYu0Oec015rS650TD0pDYfd2mEtzEqQ=; b=Su0O/0o9wCZZR2ZvFrDdgxg/5Gk0OllUXBSvFMKELgIr79s/S3jCAg+j9Sq8k+tztqbGB NkeYfecKZFYe33rObqgjf53RokMI3G9ET+fMmRchDOjfEL5irz7UchEWey3gGul7FhuqUcx uBEItkPCRK8ZFDfwLqIOb+uk3H69H1Tk8wriO9y8ZsiAJxels4aXbwUfIzeVu/Xb2qRgSB+ Z9kqIUITbFKLL0323NtgN8wPFJIekBLCDAIeK8e7c9NoQ/WpHsw11F0+uRigk9Y3FFmD8lk 4sPLpLS3YzLuGf4x/7xjx8UmZwnlanl25kJXlQzDFyGW5iyLclFMV7pyXLug== Received: from smtp.hoerst.net (p579c1320.dip0.t-ipconnect.de [87.156.19.32]) by vserver.hoerst.net (Postfix) with ESMTPSA id 47D961607AB for ; Mon, 20 Mar 2023 21:18:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by smtp.hoerst.net (Postfix) with ESMTP id 8E20E383138 for ; Mon, 20 Mar 2023 21:18:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.hoerst.net Received: from smtp.hoerst.net ([127.0.0.1]) by localhost (mail.hoerst.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3wtzlsOag6zd; Mon, 20 Mar 2023 21:18:43 +0100 (CET) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=hoerst.net; i=@hoerst.net; q=dns/txt; s=ed25519local; t=1679343523; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding : from; bh=MP7T3rSGcOGzBYu0Oec015rS650TD0pDYfd2mEtzEqQ=; b=197NsmC63MwSEjKUIghgmQxBkHD7V5ZPgUazTMmSxsuByHUOCjckIHyxOwbtYMQRQOGL9 TOcd29W74EjlLroBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hoerst.net; i=@hoerst.net; q=dns/txt; s=local; t=1679343522; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding : from; bh=MP7T3rSGcOGzBYu0Oec015rS650TD0pDYfd2mEtzEqQ=; b=EOsdi8y0PrmhyqCImHDNGSIBpY2l6bkXRbI6ImH4g07BCt4UpBbxECizDtjVoIsMHALGc kYD5D8cum7WJGtLUFKRWjjiFvvlxggVZjEVcwyQhluZMAFtCezqj9EfwvuSfWy3E7hpdNj5 Hsg8HV8qw1Sp86ezQNPMThXDkkoTAMnXd0Hr3P7mbskwmE2bnTivcIvVjyaS2BG13teiSOq /GfzpWLZv2f2mj26Ww+MM7CMJqA0nL58O+j86m2F1+jG8hbcHhWGBP+jhQd7FWKnXFJrUax tyWR7+fazn0U5G7qmW4j2FrLzi0EYeSr2c48GdwSA32YYj0ARfvrrG7HZI0g== Received: from capricorn.hoerst.net (capricorn.hoerst.net [192.168.63.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.hoerst.net (Postfix) with ESMTPSA id E30E438304E; Mon, 20 Mar 2023 21:18:42 +0100 (CET) From: Gerd Hoerst To: development@lists.ipfire.org Subject: [PATCH] addon chrony Date: Mon, 20 Mar 2023 21:18:37 +0100 Message-Id: <20230320201837.1887027-1-gerd@hoerst.net> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspamd-Server: mail01.haj.ipfire.org X-Rspamd-Queue-Id: 4PgQzr4HmlzK1 X-Spamd-Result: default: False [-1.71 / 11.00]; BAYES_HAM(-3.00)[99.99%]; SPF_REPUTATION_SPAM(2.21)[0.73550283247695]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-0.90)[-0.903]; DMARC_POLICY_ALLOW(-0.50)[hoerst.net,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[hoerst.net:s=ed25519,hoerst.net:s=default,hoerst.net:s=ed25519local,hoerst.net:s=local]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; IP_REPUTATION_HAM(-0.00)[asn: 197540(0.00), country: DE(-0.00), ip: 37.120.166.63(0.00)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; PREVIOUSLY_DELIVERED(0.00)[development@lists.ipfire.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:197540, ipnet:37.120.160.0/19, country:DE]; DKIM_REPUTATION(0.00)[0]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[hoerst.net:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Action: no action X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Gerd Hoerst --- config/chrony/etc/chrony/chrony.conf | 32 +++++++++ config/chrony/etc/chrony/chrony.keys | 10 +++ config/chrony/etc/rc.d/init.d/chrony | 56 +++++++++++++++ config/rootfiles/packages/chrony | 12 ++++ lfs/chrony | 102 +++++++++++++++++++++++++++ make.sh | 1 + src/paks/chrony/install.sh | 33 +++++++++ src/paks/chrony/uninstall.sh | 31 ++++++++ src/paks/chrony/update.sh | 26 +++++++ 9 files changed, 303 insertions(+) create mode 100644 config/chrony/etc/chrony/chrony.conf create mode 100644 config/chrony/etc/chrony/chrony.keys create mode 100755 config/chrony/etc/rc.d/init.d/chrony create mode 100644 config/rootfiles/packages/chrony create mode 100644 lfs/chrony create mode 100644 src/paks/chrony/install.sh create mode 100644 src/paks/chrony/uninstall.sh create mode 100644 src/paks/chrony/update.sh diff --git a/config/chrony/etc/chrony/chrony.conf b/config/chrony/etc/chrony/chrony.conf new file mode 100644 index 000000000..6c65f5c22 --- /dev/null +++ b/config/chrony/etc/chrony/chrony.conf @@ -0,0 +1,32 @@ +# Welcome to the chrony configuration file. See chrony.conf(5) for more +# information about usuable directives. + +pool 0.ipfire.pool.ntp.org + +# refclock SOCK /var/run/chrony.ttyAMA0.sock delay 0.0 refid SOCK +# refclock PPS /dev/pps0 refid PPS + +# This directive specify the location of the file containing ID/key pairs for +# NTP authentication. +keyfile /etc/chrony/chrony.keys + +# This directive specify the file into which chronyd will store the rate +# information. +driftfile /var/lib/chrony/chrony.drift + +# Uncomment the following line to turn logging on. +#log tracking measurements statistics + +# Log files location. +logdir /var/log/chrony + +# Stop bad estimates upsetting machine clock. +maxupdateskew 100.0 + +# This directive enables kernel synchronisation (every 11 minutes) of the +# real-time clock. Note that it can’t be used along with the 'rtcfile' directive. +rtcsync + +# Step the system clock instead of slewing it if the adjustment is larger than +# one second, but only in the first three clock updates. +makestep 1 3 diff --git a/config/chrony/etc/chrony/chrony.keys b/config/chrony/etc/chrony/chrony.keys new file mode 100644 index 000000000..cee70b392 --- /dev/null +++ b/config/chrony/etc/chrony/chrony.keys @@ -0,0 +1,10 @@ +# This file is solely used for NTP authentication with symmetric keys +# as defined by RFC 1305 and RFC 5905. +# +# It can contain ID/key pairs which can be generated using the “keygen” option +# from “chronyc”; for example: +# chronyc keygen 1 SHA256 256 >> /etc/chrony/chrony.keys +# would generate a 256-bit SHA-256 key using ID 1. +# +# A list of supported hash functions and output encoding can be found in +# the "keyfile" section from the "/usr/share/doc/chrony/chrony.txt.gz" file. diff --git a/config/chrony/etc/rc.d/init.d/chrony b/config/chrony/etc/rc.d/init.d/chrony new file mode 100755 index 000000000..0a2a0ee8e --- /dev/null +++ b/config/chrony/etc/rc.d/init.d/chrony @@ -0,0 +1,56 @@ +#!/bin/sh +######################################################################## +# Begin $rc_base/init.d/ +# +# Description : chrony initscript 4 ipfire 2.1x +# +# Authors : goerdi +# +# Version : 01.00 +# +# Notes : GPLv3 +# +######################################################################## + +. /etc/sysconfig/rc +. $rc_functions + +SERVER="Chrony Time Server" +BINARY=chronyd +DAEMON=/usr/sbin/$BINARY +CONFIG=/etc/chrony/chrony.conf +PIDFILE=/run/chronyd.pid +START="$DAEMON -f $CONFIG" + +#test -f $DAEMON || exit 0 +[ -x $DAEMON ] || exit 0 +[ -f $CONFIG ] || exit 0 + + + + +case "$1" in + start) + boot_mesg "Starting $SERVER" + loadproc $START + ;; + stop) + boot_mesg "Stopping $SERVER" + killproc -p $PIDFILE $DAEMON + ;; + restart) + boot_mesg "Restarting $CAMSERVER" + killproc -p $PIDFILE $DAEMON + sleep 3 + loadproc $START + ;; + status) + statusproc $DAEMON + ;; + *) + echo "Usage: /etc/init.d/chrony {start|stop|restart|status}" + exit 1 + ;; +esac + +exit 0 diff --git a/config/rootfiles/packages/chrony b/config/rootfiles/packages/chrony new file mode 100644 index 000000000..8386502d4 --- /dev/null +++ b/config/rootfiles/packages/chrony @@ -0,0 +1,12 @@ +#etc/chrony +etc/chrony/chrony.keys +etc/chrony/chrony.conf +etc/rc.d/init.d/chrony +usr/bin/chronyc +#usr/lib/chrony +usr/lib/chrony/chrony-helper +usr/sbin/chronyd +#usr/share/man/man1/chronyc.1 +#usr/share/man/man5/chrony.conf.5 +#usr/share/man/man8/chronyd.8 +#var/lib/chrony diff --git a/lfs/chrony b/lfs/chrony new file mode 100644 index 000000000..8e471ef77 --- /dev/null +++ b/lfs/chrony @@ -0,0 +1,102 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2020 IPFire Team # +# # +# 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 = 4.3 + +THISAPP = chrony-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = https://download.tuxfamily.org/chrony +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = chrony +PAK_VER = 1 +DEPS = "" +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_BLAKE2 = 51ba6d19312fd52cd6d6d8ab9437c886a3779877170674db6dc37d657e849101e2669fd6c8723d24e43c895cd1924c3d8d2ff442baeef9abe8a6c313929edf5f + + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) +b2 : $(subst %,%_BLAKE2,$(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 \ + --mandir=/usr/share/man \ + --sysconfdir=/etc/chrony \ + --without-readline \ + --enable-scfilter \ + --chronyrundir=/run/chrony \ + --with-ntp-era=$(shell date -d '1970-01-01 00:00:00+00:00' +'%s') \ + --enable-ntp-signd \ + --with-hwclockfile=/etc/adjtime \ + --with-pidfile=/run/chronyd.pid \ + --host-system=Linux + + + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + + mkdir -p /etc/chrony + cp -avf $(DIR_CONF)/chrony/etc/chrony/* /etc/chrony + cp -vrf $(DIR_CONF)/chrony/etc/rc.d/init.d/chrony /etc/rc.d/init.d + mkdir -p /usr/lib/chrony + cp -avf $(DIR_CONF)/chrony/usr/lib/chrony/* /usr/lib/chrony + + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 3b7f9850c..ab995c20e 100755 --- a/make.sh +++ b/make.sh @@ -1397,6 +1397,7 @@ buildipfire() { lfsmake2 python3-docutils lfsmake2 python3-daemon lfsmake2 ntp + lfsmake2 chrony lfsmake2 openssh lfsmake2 fontconfig lfsmake2 dejavu-fonts-ttf diff --git a/src/paks/chrony/install.sh b/src/paks/chrony/install.sh new file mode 100644 index 000000000..b0b053bd6 --- /dev/null +++ b/src/paks/chrony/install.sh @@ -0,0 +1,33 @@ +#!/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} +chmod ugo+x /etc/rc.d/init.d/chrony +ln -svf ../init.d/chrony /etc/rc.d/rc0.d/K46chrony +ln -svf ../init.d/chrony /etc/rc.d/rc3.d/S26chrony +ln -svf ../init.d/chrony /etc/rc.d/rc6.d/K46chrony + +start_service --background ${NAME} diff --git a/src/paks/chrony/uninstall.sh b/src/paks/chrony/uninstall.sh new file mode 100644 index 000000000..9472553d3 --- /dev/null +++ b/src/paks/chrony/uninstall.sh @@ -0,0 +1,31 @@ +#!/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} +# wait2 terminate +sleep 3 +make_backup ${NAME} +remove_files +rm -rf /etc/rc.d/rc*.d/*chrony +rm /etc/rc.d/rc3.d/off/*chrony diff --git a/src/paks/chrony/update.sh b/src/paks/chrony/update.sh new file mode 100644 index 000000000..89c40d0d7 --- /dev/null +++ b/src/paks/chrony/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