[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r6718 - in GNUnet/debian: . lintian
From: |
gnunet |
Subject: |
[GNUnet-SVN] r6718 - in GNUnet/debian: . lintian |
Date: |
Thu, 17 Apr 2008 01:15:20 -0600 (MDT) |
Author: elmargol
Date: 2008-04-17 01:15:19 -0600 (Thu, 17 Apr 2008)
New Revision: 6718
Added:
GNUnet/debian/gnunet-server.README.Debian
GNUnet/debian/gnunet-server.config
GNUnet/debian/gnunet-server.dirs
GNUnet/debian/gnunet-server.docs
GNUnet/debian/gnunet-server.init
GNUnet/debian/gnunet-server.install
GNUnet/debian/gnunet-server.logrotate
GNUnet/debian/gnunet-server.postinst
GNUnet/debian/gnunet-server.postrm
GNUnet/debian/gnunet-server.prerm
GNUnet/debian/gnunet-server.templates
GNUnet/debian/lintian/gnunet-server
Removed:
GNUnet/debian/files
GNUnet/debian/gnunet-client.manpages
GNUnet/debian/gnunet-client.postinst.debhelper
GNUnet/debian/gnunet-client.postrm.debhelper
GNUnet/debian/gnunet-client.substvars
GNUnet/debian/gnunet-common.postinst.debhelper
GNUnet/debian/gnunet-common.postrm.debhelper
GNUnet/debian/gnunet-common.substvars
GNUnet/debian/gnunet-daemon.README.Debian
GNUnet/debian/gnunet-daemon.config
GNUnet/debian/gnunet-daemon.dirs
GNUnet/debian/gnunet-daemon.docs
GNUnet/debian/gnunet-daemon.init
GNUnet/debian/gnunet-daemon.install
GNUnet/debian/gnunet-daemon.logrotate
GNUnet/debian/gnunet-daemon.manpages
GNUnet/debian/gnunet-daemon.postinst
GNUnet/debian/gnunet-daemon.postinst.debhelper
GNUnet/debian/gnunet-daemon.postrm
GNUnet/debian/gnunet-daemon.postrm.debhelper
GNUnet/debian/gnunet-daemon.prerm
GNUnet/debian/gnunet-daemon.templates
GNUnet/debian/gnunet-tools.manpages
GNUnet/debian/gnunet-tools.postinst.debhelper
GNUnet/debian/gnunet-tools.postrm.debhelper
GNUnet/debian/gnunet-tools.substvars
GNUnet/debian/lintian/gnunet-daemon
Log:
rename gnunet-daemon to gnunet-server
delete unused files
Deleted: GNUnet/debian/files
===================================================================
--- GNUnet/debian/files 2008-04-17 03:52:44 UTC (rev 6717)
+++ GNUnet/debian/files 2008-04-17 07:15:19 UTC (rev 6718)
@@ -1,6 +0,0 @@
-gnunet_0.7.2-1_all.deb net optional
-gnunet-client_0.7.2-1_i386.deb net optional
-gnunet-common_0.7.2-1_i386.deb net optional
-gnunet-daemon_0.7.2-1_i386.deb net optional
-gnunet-dev_0.7.2-1_i386.deb libdevel optional
-gnunet-tools_0.7.2-1_i386.deb net optional
Deleted: GNUnet/debian/gnunet-client.manpages
===================================================================
--- GNUnet/debian/gnunet-client.manpages 2008-04-17 03:52:44 UTC (rev
6717)
+++ GNUnet/debian/gnunet-client.manpages 2008-04-17 07:15:19 UTC (rev
6718)
@@ -1,9 +0,0 @@
-doc/man/gnunet-directory.1
-doc/man/gnunet-download.1
-doc/man/gnunet-download-manager.1
-doc/man/gnunet-insert.1
-doc/man/gnunet-pseudonym.1
-doc/man/gnunet-search.1
-doc/man/gnunet-stats.1
-doc/man/gnunet-tbench.1
-doc/man/gnunet-tracekit.1
Deleted: GNUnet/debian/gnunet-client.postinst.debhelper
===================================================================
--- GNUnet/debian/gnunet-client.postinst.debhelper 2008-04-17 03:52:44 UTC
(rev 6717)
+++ GNUnet/debian/gnunet-client.postinst.debhelper 2008-04-17 07:15:19 UTC
(rev 6718)
@@ -1,5 +0,0 @@
-# Automatically added by dh_makeshlibs
-if [ "$1" = "configure" ]; then
- ldconfig
-fi
-# End automatically added section
Deleted: GNUnet/debian/gnunet-client.postrm.debhelper
===================================================================
--- GNUnet/debian/gnunet-client.postrm.debhelper 2008-04-17 03:52:44 UTC
(rev 6717)
+++ GNUnet/debian/gnunet-client.postrm.debhelper 2008-04-17 07:15:19 UTC
(rev 6718)
@@ -1,5 +0,0 @@
-# Automatically added by dh_makeshlibs
-if [ "$1" = "remove" ]; then
- ldconfig
-fi
-# End automatically added section
Deleted: GNUnet/debian/gnunet-client.substvars
===================================================================
--- GNUnet/debian/gnunet-client.substvars 2008-04-17 03:52:44 UTC (rev
6717)
+++ GNUnet/debian/gnunet-client.substvars 2008-04-17 07:15:19 UTC (rev
6718)
@@ -1 +0,0 @@
-shlibs:Depends=gnunet-common, guile-1.8-libs, libadns1, libc6 (>=
2.5-0ubuntu1), libextractor1c2a (>= 0.5.18), libgcrypt11 (>=1.2.2), libgmp3c2,
libgpg-error0 (>= 1.4), libltdl3 (>= 1.5.2-2), zlib1g (>= 1:1.2.1)
Deleted: GNUnet/debian/gnunet-common.postinst.debhelper
===================================================================
--- GNUnet/debian/gnunet-common.postinst.debhelper 2008-04-17 03:52:44 UTC
(rev 6717)
+++ GNUnet/debian/gnunet-common.postinst.debhelper 2008-04-17 07:15:19 UTC
(rev 6718)
@@ -1,5 +0,0 @@
-# Automatically added by dh_makeshlibs
-if [ "$1" = "configure" ]; then
- ldconfig
-fi
-# End automatically added section
Deleted: GNUnet/debian/gnunet-common.postrm.debhelper
===================================================================
--- GNUnet/debian/gnunet-common.postrm.debhelper 2008-04-17 03:52:44 UTC
(rev 6717)
+++ GNUnet/debian/gnunet-common.postrm.debhelper 2008-04-17 07:15:19 UTC
(rev 6718)
@@ -1,5 +0,0 @@
-# Automatically added by dh_makeshlibs
-if [ "$1" = "remove" ]; then
- ldconfig
-fi
-# End automatically added section
Deleted: GNUnet/debian/gnunet-common.substvars
===================================================================
--- GNUnet/debian/gnunet-common.substvars 2008-04-17 03:52:44 UTC (rev
6717)
+++ GNUnet/debian/gnunet-common.substvars 2008-04-17 07:15:19 UTC (rev
6718)
@@ -1 +0,0 @@
-shlibs:Depends=guile-1.8-libs, libadns1, libc6 (>= 2.5-0ubuntu1), libgcrypt11
(>=1.2.2), libgmp3c2, libgpg-error0 (>= 1.4), libltdl3 (>= 1.5.2-2)
Deleted: GNUnet/debian/gnunet-daemon.README.Debian
===================================================================
--- GNUnet/debian/gnunet-daemon.README.Debian 2008-04-17 03:52:44 UTC (rev
6717)
+++ GNUnet/debian/gnunet-daemon.README.Debian 2008-04-17 07:15:19 UTC (rev
6718)
@@ -1,21 +0,0 @@
-gnunet for Debian
------------------
-
-GNUnet starts by default at boot time. To change the default behaviour, run:
-
- # dpkg-reconfigure -plow gnunet-daemon
-
-In order to start, stop or restart manually the daemon, use:
-
- # /etc/init.d/gnunet-daemon
-
-with the parameter start, stop or restart.
-
-Note: You cannot upgrade GNUnet directly from versions earlier than 0.6.1b,
-refer to the file UPDATING for information on how to migrate your data.
-
-GNUnet has a global config file, /etc/gnunet.conf, for some programs (e.g.
-gnunet-stats) it may also need a per user config file, a sample of which is the
-included gnunet.user which can be copied to ~/.gnunet/gnunet.conf
-
- -- Arnaud Kyheng <address@hidden> Sun, 29 Aug 2004 23:07:45 +0200
Deleted: GNUnet/debian/gnunet-daemon.config
===================================================================
--- GNUnet/debian/gnunet-daemon.config 2008-04-17 03:52:44 UTC (rev 6717)
+++ GNUnet/debian/gnunet-daemon.config 2008-04-17 07:15:19 UTC (rev 6718)
@@ -1,19 +0,0 @@
-#!/bin/sh
-# Author: Arnaud Kyheng <address@hidden>
-
-set -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-# Ask for GNUnet daemon user
-db_input medium gnunet-daemon/gnunet_user || true
-db_go
-
-# Ask for GNUnet daemon group
-db_input medium gnunet-daemon/gnunet_group || true
-db_go
-
-# Ask for GNUnet autostart
-db_input high gnunet-daemon/launch_at_startup || true
-db_go
Deleted: GNUnet/debian/gnunet-daemon.dirs
===================================================================
--- GNUnet/debian/gnunet-daemon.dirs 2008-04-17 03:52:44 UTC (rev 6717)
+++ GNUnet/debian/gnunet-daemon.dirs 2008-04-17 07:15:19 UTC (rev 6718)
@@ -1,3 +0,0 @@
-/var/lib/gnunet
-/var/run/gnunetd
-/var/log/gnunetd
Deleted: GNUnet/debian/gnunet-daemon.docs
===================================================================
--- GNUnet/debian/gnunet-daemon.docs 2008-04-17 03:52:44 UTC (rev 6717)
+++ GNUnet/debian/gnunet-daemon.docs 2008-04-17 07:15:19 UTC (rev 6718)
@@ -1,4 +0,0 @@
-AUTHORS
-README
-README.fr
-UPDATING
Deleted: GNUnet/debian/gnunet-daemon.init
===================================================================
--- GNUnet/debian/gnunet-daemon.init 2008-04-17 03:52:44 UTC (rev 6717)
+++ GNUnet/debian/gnunet-daemon.init 2008-04-17 07:15:19 UTC (rev 6718)
@@ -1,65 +0,0 @@
-#!/bin/sh
-
-### BEGIN INIT INFO
-# Provides: gnunet-daemon
-# Required-Start: $syslog $network $local_fs
-# Required-Stop: $syslog $network $local_fs
-# Should-Start:
-# Should-Stop:
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: Starts the GNUnet daemon at boot time.
-# Description: GNUnet is a secure, trust-based peer-to-peer framework.
-### END INIT INFO
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DAEMON=/usr/bin/gnunetd
-NAME=gnunetd
-DESC=GNUnet
-# Assuming default value for PIDFILE. This should not be changed
-PIDFILE=/var/run/gnunetd/"${NAME}".pid
-
-test -x "${DAEMON}" || exit 0
-
-set -e
-
-# Get configuration
-if [ -r /etc/default/gnunet-daemon ]
-then
- . /etc/default/gnunet-daemon
-fi
-
-case "${1}" in
- start)
- # We should not need --background, but if not here, the
- # invoke-rc.d hangs when using debconf --quiet removed: For some
- # unknown reason, with gnunet 0.7.0, adding --quiet brake the
- # pidfile creation...
-
- echo -n "Starting ${DESC}: "
- start-stop-daemon --start --background --chuid ${GNUNET_USER} \
- --pidfile "$PIDFILE" --exec ${DAEMON} -- -c \
- /etc/gnunetd.conf
- echo "${NAME}."
- ;;
-
- stop)
- echo -n "Stopping ${DESC}: "
- start-stop-daemon --stop --pidfile $PIDFILE --exec ${DAEMON} \
- --retry 15 --oknodo
- echo "${NAME}."
- ;;
-
- restart|force-reload)
- ${0} stop
- sleep 1
- ${0} start
- ;;
-
- *)
- echo "Usage: ${0} {start|stop|restart|force-reload}" >&2
- exit 1
- ;;
-esac
-
-exit 0
Deleted: GNUnet/debian/gnunet-daemon.install
===================================================================
--- GNUnet/debian/gnunet-daemon.install 2008-04-17 03:52:44 UTC (rev 6717)
+++ GNUnet/debian/gnunet-daemon.install 2008-04-17 07:15:19 UTC (rev 6718)
@@ -1,8 +0,0 @@
-/usr/bin/gnunetd
-/usr/bin/gnunet-transport-check
-/usr/bin/gnunet-peer-info
-/usr/bin/gnunet-update
-/usr/lib/libgnunetcore.so.*
-/usr/lib/GNUnet/libgnunetmodule_*.so
-/usr/lib/GNUnet/libgnunettransport_*.so
-/usr/lib/libgnunetip.so.*
Deleted: GNUnet/debian/gnunet-daemon.logrotate
===================================================================
--- GNUnet/debian/gnunet-daemon.logrotate 2008-04-17 03:52:44 UTC (rev
6717)
+++ GNUnet/debian/gnunet-daemon.logrotate 2008-04-17 07:15:19 UTC (rev
6718)
@@ -1,10 +0,0 @@
-/var/log/gnunetd/gnunetd.log {
- weekly
- size=100k
- rotate 7
- compress
- copytruncate
- delaycompress
- notifempty
- missingok
-}
Deleted: GNUnet/debian/gnunet-daemon.manpages
===================================================================
--- GNUnet/debian/gnunet-daemon.manpages 2008-04-17 03:52:44 UTC (rev
6717)
+++ GNUnet/debian/gnunet-daemon.manpages 2008-04-17 07:15:19 UTC (rev
6718)
@@ -1,4 +0,0 @@
-doc/man/gnunetd.1
-doc/man/gnunet-peer-info.1
-doc/man/gnunet-transport-check.1
-doc/man/gnunet-update.1
Deleted: GNUnet/debian/gnunet-daemon.postinst
===================================================================
--- GNUnet/debian/gnunet-daemon.postinst 2008-04-17 03:52:44 UTC (rev
6717)
+++ GNUnet/debian/gnunet-daemon.postinst 2008-04-17 07:15:19 UTC (rev
6718)
@@ -1,140 +0,0 @@
-#!/bin/sh
-# Author: Arnaud Kyheng <address@hidden>
-
-set -e
-
-case "${1}" in
- configure)
- # Source debconf library.
- . /usr/share/debconf/confmodule
-
- # Read default values
- CONFIG_FILE=/etc/default/gnunet-daemon
-
- # Check for GNUNETD_HOME consistancy
- # Look for historical location of GNUNETD_HOME
- GNUNETD_HOME=`gnunet-update --get=PATHS:GNUNETD_HOME`
- if [ ! $GNUNETD_HOME ] || [ ! -d "$GNUNETD_HOME" ]; then
- # Set up the new section and value
- echo -n "Updating /etc/gnunetd.conf with new [PATHS]
mandatory section"
- GNUNETD_HOME=`gnunet-update --get=GNUNETD:GNUNETD_HOME`
- if [ ! $GNUNETD_HOME ] || [ ! -d "$GNUNETD_HOME" ]; then
- # using default value
- GNUNETD_HOME="/var/lib/GNUnet"
- fi
- CONFIG_NEW=`/bin/tempfile`
- cat > $CONFIG_NEW <<EOF
-[PATHS]
-GNUNETD_HOME = $GNUNETD_HOME
-
-EOF
- sed '/^GNUNETD_HOME/d' /etc/gnunetd.conf >> $CONFIG_NEW
- mv -f /etc/gnunetd.conf /etc/gnunetd.conf.bak
- cp -f $CONFIG_NEW /etc/gnunetd.conf
- rm -f $CONFIG_NEW
- chmod 644 /etc/gnunetd.conf
- echo " [done]"
- fi
-
- # This is need to migrate data from 0.6.1b or later
- echo "Migrating previous GNUnet data (gnunet-update)"
- gnunet-update
-
- # Read debconf values
- db_get gnunet-daemon/gnunet_user
- gnunet_user="${RET}"
- db_get gnunet-daemon/gnunet_group
- gnunet_group="${RET}"
- db_get gnunet-daemon/launch_at_startup
- launch_at_startup="${RET}"
-
- # Creating gnunet group if needed
- if ! getent group ${gnunet_group} > /dev/null
- then
- echo -n "Creating new GNUnet group ${gnunet_group}: "
- addgroup --quiet --system ${gnunet_group}
- echo "done."
- fi
-
- # Creating gnunet user if needed
- if ! getent passwd $gnunet_user > /dev/null
- then
- echo -n "Creating new GNUnet user ${gnunet_user}: "
- adduser --quiet --system --ingroup ${gnunet_group}
--no-create-home ${gnunet_user}
- echo "done."
- fi
-
- # Update files and directories permissions.
- # Assuming default values, this *should* not be changed.
- echo -n "Updating files and directories permissions: "
- chown -R ${gnunet_user}:${gnunet_group} /var/run/gnunetd
- chown -R ${gnunet_user}:${gnunet_group} /var/log/gnunetd
- # Use the new "gnunet-update -g"
- GNUNETD_HOME=`gnunet-update --get=GNUNETD:GNUNETD_HOME`
- chown -R ${gnunet_user}:${gnunet_group} ${GNUNETD_HOME}
- echo "done."
-
- # Writing new values to configuration file
- echo -n "Writing new configuration file: "
- CONFIG_NEW=`/bin/tempfile`
-
-cat > "${CONFIG_NEW}" <<EOF
-# This file controls the behaviour of the GNUnet init script.
-# It will be parsed as a shell script.
-# please do not edit by hand, use 'dpkg-reconfigure gnunet-daemon'.
-
-GNUNET_USER=${gnunet_user}
-GNUNET_GROUP=${gnunet_group}
-EOF
-
- cp -f "${CONFIG_NEW}" "${CONFIG_FILE}"
- echo "done."
-
- # Secure access to the data directory
- chmod 0700 "${GNUNETD_HOME}" || true
-
- # Cleaning
- rm -f "${CONFIG_NEW}"
- echo "All done."
-
- if [ "${launch_at_startup}" = "true" ]
- then
- if [ -x /etc/init.d/gnunet-daemon ]
- then
- update-rc.d gnunet-daemon defaults > /dev/null
2>&1 || true
-
- if [ -x /usr/sbin/invoke-rc.d ]
- then
- invoke-rc.d gnunet-daemon start || true
- else
- /etc/init.d/gnunet-daemon start || true
- fi
- fi
- else
- if [ -x /etc/init.d/gnunet-daemon ]
- then
- if [ -x /usr/sbin/invoke-rc.d ]
- then
- invoke-rc.d gnunet-daemon stop || true
- else
- /etc/init.d/gnunet-daemon stop || true
- fi
- fi
-
- update-rc.d -f gnunet-daemon remove > /dev/null 2>&1 ||
true
- fi
- ;;
-
- abort-upgrade|abort-remove|abort-deconfigure)
-
- ;;
-
- *)
- echo "postinst called with unknown argument \`${1}'" >&2
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
Deleted: GNUnet/debian/gnunet-daemon.postinst.debhelper
===================================================================
--- GNUnet/debian/gnunet-daemon.postinst.debhelper 2008-04-17 03:52:44 UTC
(rev 6717)
+++ GNUnet/debian/gnunet-daemon.postinst.debhelper 2008-04-17 07:15:19 UTC
(rev 6718)
@@ -1,5 +0,0 @@
-# Automatically added by dh_makeshlibs
-if [ "$1" = "configure" ]; then
- ldconfig
-fi
-# End automatically added section
Deleted: GNUnet/debian/gnunet-daemon.postrm
===================================================================
--- GNUnet/debian/gnunet-daemon.postrm 2008-04-17 03:52:44 UTC (rev 6717)
+++ GNUnet/debian/gnunet-daemon.postrm 2008-04-17 07:15:19 UTC (rev 6718)
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case "${1}" in
- purge)
- update-rc.d -f gnunet-daemon remove > /dev/null 2>&1 || exit 0
-
- rm -rf /var/log/gnunetd
- rm -rf /var/run/gnunetd
- ;;
-
- remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-
- ;;
-
- *)
- echo "postrm called with unknown argument \`${1}'" >&2
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
Deleted: GNUnet/debian/gnunet-daemon.postrm.debhelper
===================================================================
--- GNUnet/debian/gnunet-daemon.postrm.debhelper 2008-04-17 03:52:44 UTC
(rev 6717)
+++ GNUnet/debian/gnunet-daemon.postrm.debhelper 2008-04-17 07:15:19 UTC
(rev 6718)
@@ -1,11 +0,0 @@
-# Automatically added by dh_installdebconf
-if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
- . /usr/share/debconf/confmodule
- db_purge
-fi
-# End automatically added section
-# Automatically added by dh_makeshlibs
-if [ "$1" = "remove" ]; then
- ldconfig
-fi
-# End automatically added section
Deleted: GNUnet/debian/gnunet-daemon.prerm
===================================================================
--- GNUnet/debian/gnunet-daemon.prerm 2008-04-17 03:52:44 UTC (rev 6717)
+++ GNUnet/debian/gnunet-daemon.prerm 2008-04-17 07:15:19 UTC (rev 6718)
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ -x /etc/init.d/gnunet-daemon ]
-then
- if [ -x /usr/sbin/invoke-rc.d ]
- then
- invoke-rc.d gnunet-daemon stop || exit 0
- else
- /etc/init.d/gnunet-daemon stop || exit 0
- fi
-fi
-
-#DEBHELPER#
-
-exit 0
Deleted: GNUnet/debian/gnunet-daemon.templates
===================================================================
--- GNUnet/debian/gnunet-daemon.templates 2008-04-17 03:52:44 UTC (rev
6717)
+++ GNUnet/debian/gnunet-daemon.templates 2008-04-17 07:15:19 UTC (rev
6718)
@@ -1,35 +0,0 @@
-# These templates have been reviewed by the debian-l10n-english
-# team
-#
-# If modifications/additions/rewording are needed, please ask
-# for an advice to address@hidden
-#
-# Even minor modifications require translation updates and such
-# changes should be coordinated with translators and reviewers.
-
-Template: gnunet-daemon/launch_at_startup
-Type: boolean
-Default: true
-_Description: Should the GNUnet daemon be launched on boot?
- If you choose this option, a GNUnet server will be started each time
- the system is launched. Otherwise, you will need to launch
- GNUnet each time you want to use it.
-
-Template: gnunet-daemon/gnunet_user
-Type: string
-Default: gnunet
-_Description: GNUnet user:
- Please choose the user that the GNUnet daemon process will run as.
- .
- This should be a dedicated account. If the specified account does not
- already exist, it will automatically be created, with no login shell.
-
-Template: gnunet-daemon/gnunet_group
-Type: string
-Default: gnunet
-_Description: GNUnet group:
- Please choose the group that the GNUnet daemon process will run as.
- .
- This should be a dedicated group, not one that already owns data.
- Only the members of this group will have access to GNUnet data, and
- be allowed to start and stop the GNUnet server.
Copied: GNUnet/debian/gnunet-server.README.Debian (from rev 6717,
GNUnet/debian/gnunet-daemon.README.Debian)
===================================================================
--- GNUnet/debian/gnunet-server.README.Debian (rev 0)
+++ GNUnet/debian/gnunet-server.README.Debian 2008-04-17 07:15:19 UTC (rev
6718)
@@ -0,0 +1,21 @@
+gnunet for Debian
+-----------------
+
+GNUnet starts by default at boot time. To change the default behaviour, run:
+
+ # dpkg-reconfigure -plow gnunet-daemon
+
+In order to start, stop or restart manually the daemon, use:
+
+ # /etc/init.d/gnunet-daemon
+
+with the parameter start, stop or restart.
+
+Note: You cannot upgrade GNUnet directly from versions earlier than 0.6.1b,
+refer to the file UPDATING for information on how to migrate your data.
+
+GNUnet has a global config file, /etc/gnunet.conf, for some programs (e.g.
+gnunet-stats) it may also need a per user config file, a sample of which is the
+included gnunet.user which can be copied to ~/.gnunet/gnunet.conf
+
+ -- Arnaud Kyheng <address@hidden> Sun, 29 Aug 2004 23:07:45 +0200
Copied: GNUnet/debian/gnunet-server.config (from rev 6717,
GNUnet/debian/gnunet-daemon.config)
===================================================================
--- GNUnet/debian/gnunet-server.config (rev 0)
+++ GNUnet/debian/gnunet-server.config 2008-04-17 07:15:19 UTC (rev 6718)
@@ -0,0 +1,19 @@
+#!/bin/sh
+# Author: Arnaud Kyheng <address@hidden>
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# Ask for GNUnet daemon user
+db_input medium gnunet-daemon/gnunet_user || true
+db_go
+
+# Ask for GNUnet daemon group
+db_input medium gnunet-daemon/gnunet_group || true
+db_go
+
+# Ask for GNUnet autostart
+db_input high gnunet-daemon/launch_at_startup || true
+db_go
Copied: GNUnet/debian/gnunet-server.dirs (from rev 6717,
GNUnet/debian/gnunet-daemon.dirs)
===================================================================
--- GNUnet/debian/gnunet-server.dirs (rev 0)
+++ GNUnet/debian/gnunet-server.dirs 2008-04-17 07:15:19 UTC (rev 6718)
@@ -0,0 +1,3 @@
+/var/lib/gnunet
+/var/run/gnunetd
+/var/log/gnunetd
Copied: GNUnet/debian/gnunet-server.docs (from rev 6717,
GNUnet/debian/gnunet-daemon.docs)
===================================================================
--- GNUnet/debian/gnunet-server.docs (rev 0)
+++ GNUnet/debian/gnunet-server.docs 2008-04-17 07:15:19 UTC (rev 6718)
@@ -0,0 +1,4 @@
+AUTHORS
+README
+README.fr
+UPDATING
Copied: GNUnet/debian/gnunet-server.init (from rev 6717,
GNUnet/debian/gnunet-daemon.init)
===================================================================
--- GNUnet/debian/gnunet-server.init (rev 0)
+++ GNUnet/debian/gnunet-server.init 2008-04-17 07:15:19 UTC (rev 6718)
@@ -0,0 +1,65 @@
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides: gnunet-daemon
+# Required-Start: $syslog $network $local_fs
+# Required-Stop: $syslog $network $local_fs
+# Should-Start:
+# Should-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Starts the GNUnet daemon at boot time.
+# Description: GNUnet is a secure, trust-based peer-to-peer framework.
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/gnunetd
+NAME=gnunetd
+DESC=GNUnet
+# Assuming default value for PIDFILE. This should not be changed
+PIDFILE=/var/run/gnunetd/"${NAME}".pid
+
+test -x "${DAEMON}" || exit 0
+
+set -e
+
+# Get configuration
+if [ -r /etc/default/gnunet-daemon ]
+then
+ . /etc/default/gnunet-daemon
+fi
+
+case "${1}" in
+ start)
+ # We should not need --background, but if not here, the
+ # invoke-rc.d hangs when using debconf --quiet removed: For some
+ # unknown reason, with gnunet 0.7.0, adding --quiet brake the
+ # pidfile creation...
+
+ echo -n "Starting ${DESC}: "
+ start-stop-daemon --start --background --chuid ${GNUNET_USER} \
+ --pidfile "$PIDFILE" --exec ${DAEMON} -- -c \
+ /etc/gnunetd.conf
+ echo "${NAME}."
+ ;;
+
+ stop)
+ echo -n "Stopping ${DESC}: "
+ start-stop-daemon --stop --pidfile $PIDFILE --exec ${DAEMON} \
+ --retry 15 --oknodo
+ echo "${NAME}."
+ ;;
+
+ restart|force-reload)
+ ${0} stop
+ sleep 1
+ ${0} start
+ ;;
+
+ *)
+ echo "Usage: ${0} {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
Copied: GNUnet/debian/gnunet-server.install (from rev 6717,
GNUnet/debian/gnunet-daemon.install)
===================================================================
--- GNUnet/debian/gnunet-server.install (rev 0)
+++ GNUnet/debian/gnunet-server.install 2008-04-17 07:15:19 UTC (rev 6718)
@@ -0,0 +1,8 @@
+/usr/bin/gnunetd
+/usr/bin/gnunet-transport-check
+/usr/bin/gnunet-peer-info
+/usr/bin/gnunet-update
+/usr/lib/libgnunetcore.so.*
+/usr/lib/GNUnet/libgnunetmodule_*.so
+/usr/lib/GNUnet/libgnunettransport_*.so
+/usr/lib/libgnunetip.so.*
Copied: GNUnet/debian/gnunet-server.logrotate (from rev 6717,
GNUnet/debian/gnunet-daemon.logrotate)
===================================================================
--- GNUnet/debian/gnunet-server.logrotate (rev 0)
+++ GNUnet/debian/gnunet-server.logrotate 2008-04-17 07:15:19 UTC (rev
6718)
@@ -0,0 +1,10 @@
+/var/log/gnunetd/gnunetd.log {
+ weekly
+ size=100k
+ rotate 7
+ compress
+ copytruncate
+ delaycompress
+ notifempty
+ missingok
+}
Copied: GNUnet/debian/gnunet-server.postinst (from rev 6717,
GNUnet/debian/gnunet-daemon.postinst)
===================================================================
--- GNUnet/debian/gnunet-server.postinst (rev 0)
+++ GNUnet/debian/gnunet-server.postinst 2008-04-17 07:15:19 UTC (rev
6718)
@@ -0,0 +1,140 @@
+#!/bin/sh
+# Author: Arnaud Kyheng <address@hidden>
+
+set -e
+
+case "${1}" in
+ configure)
+ # Source debconf library.
+ . /usr/share/debconf/confmodule
+
+ # Read default values
+ CONFIG_FILE=/etc/default/gnunet-daemon
+
+ # Check for GNUNETD_HOME consistancy
+ # Look for historical location of GNUNETD_HOME
+ GNUNETD_HOME=`gnunet-update --get=PATHS:GNUNETD_HOME`
+ if [ ! $GNUNETD_HOME ] || [ ! -d "$GNUNETD_HOME" ]; then
+ # Set up the new section and value
+ echo -n "Updating /etc/gnunetd.conf with new [PATHS]
mandatory section"
+ GNUNETD_HOME=`gnunet-update --get=GNUNETD:GNUNETD_HOME`
+ if [ ! $GNUNETD_HOME ] || [ ! -d "$GNUNETD_HOME" ]; then
+ # using default value
+ GNUNETD_HOME="/var/lib/GNUnet"
+ fi
+ CONFIG_NEW=`/bin/tempfile`
+ cat > $CONFIG_NEW <<EOF
+[PATHS]
+GNUNETD_HOME = $GNUNETD_HOME
+
+EOF
+ sed '/^GNUNETD_HOME/d' /etc/gnunetd.conf >> $CONFIG_NEW
+ mv -f /etc/gnunetd.conf /etc/gnunetd.conf.bak
+ cp -f $CONFIG_NEW /etc/gnunetd.conf
+ rm -f $CONFIG_NEW
+ chmod 644 /etc/gnunetd.conf
+ echo " [done]"
+ fi
+
+ # This is need to migrate data from 0.6.1b or later
+ echo "Migrating previous GNUnet data (gnunet-update)"
+ gnunet-update
+
+ # Read debconf values
+ db_get gnunet-daemon/gnunet_user
+ gnunet_user="${RET}"
+ db_get gnunet-daemon/gnunet_group
+ gnunet_group="${RET}"
+ db_get gnunet-daemon/launch_at_startup
+ launch_at_startup="${RET}"
+
+ # Creating gnunet group if needed
+ if ! getent group ${gnunet_group} > /dev/null
+ then
+ echo -n "Creating new GNUnet group ${gnunet_group}: "
+ addgroup --quiet --system ${gnunet_group}
+ echo "done."
+ fi
+
+ # Creating gnunet user if needed
+ if ! getent passwd $gnunet_user > /dev/null
+ then
+ echo -n "Creating new GNUnet user ${gnunet_user}: "
+ adduser --quiet --system --ingroup ${gnunet_group}
--no-create-home ${gnunet_user}
+ echo "done."
+ fi
+
+ # Update files and directories permissions.
+ # Assuming default values, this *should* not be changed.
+ echo -n "Updating files and directories permissions: "
+ chown -R ${gnunet_user}:${gnunet_group} /var/run/gnunetd
+ chown -R ${gnunet_user}:${gnunet_group} /var/log/gnunetd
+ # Use the new "gnunet-update -g"
+ GNUNETD_HOME=`gnunet-update --get=GNUNETD:GNUNETD_HOME`
+ chown -R ${gnunet_user}:${gnunet_group} ${GNUNETD_HOME}
+ echo "done."
+
+ # Writing new values to configuration file
+ echo -n "Writing new configuration file: "
+ CONFIG_NEW=`/bin/tempfile`
+
+cat > "${CONFIG_NEW}" <<EOF
+# This file controls the behaviour of the GNUnet init script.
+# It will be parsed as a shell script.
+# please do not edit by hand, use 'dpkg-reconfigure gnunet-daemon'.
+
+GNUNET_USER=${gnunet_user}
+GNUNET_GROUP=${gnunet_group}
+EOF
+
+ cp -f "${CONFIG_NEW}" "${CONFIG_FILE}"
+ echo "done."
+
+ # Secure access to the data directory
+ chmod 0700 "${GNUNETD_HOME}" || true
+
+ # Cleaning
+ rm -f "${CONFIG_NEW}"
+ echo "All done."
+
+ if [ "${launch_at_startup}" = "true" ]
+ then
+ if [ -x /etc/init.d/gnunet-daemon ]
+ then
+ update-rc.d gnunet-daemon defaults > /dev/null
2>&1 || true
+
+ if [ -x /usr/sbin/invoke-rc.d ]
+ then
+ invoke-rc.d gnunet-daemon start || true
+ else
+ /etc/init.d/gnunet-daemon start || true
+ fi
+ fi
+ else
+ if [ -x /etc/init.d/gnunet-daemon ]
+ then
+ if [ -x /usr/sbin/invoke-rc.d ]
+ then
+ invoke-rc.d gnunet-daemon stop || true
+ else
+ /etc/init.d/gnunet-daemon stop || true
+ fi
+ fi
+
+ update-rc.d -f gnunet-daemon remove > /dev/null 2>&1 ||
true
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Copied: GNUnet/debian/gnunet-server.postrm (from rev 6717,
GNUnet/debian/gnunet-daemon.postrm)
===================================================================
--- GNUnet/debian/gnunet-server.postrm (rev 0)
+++ GNUnet/debian/gnunet-server.postrm 2008-04-17 07:15:19 UTC (rev 6718)
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ purge)
+ update-rc.d -f gnunet-daemon remove > /dev/null 2>&1 || exit 0
+
+ rm -rf /var/log/gnunetd
+ rm -rf /var/run/gnunetd
+ ;;
+
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Copied: GNUnet/debian/gnunet-server.prerm (from rev 6717,
GNUnet/debian/gnunet-daemon.prerm)
===================================================================
--- GNUnet/debian/gnunet-server.prerm (rev 0)
+++ GNUnet/debian/gnunet-server.prerm 2008-04-17 07:15:19 UTC (rev 6718)
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+if [ -x /etc/init.d/gnunet-daemon ]
+then
+ if [ -x /usr/sbin/invoke-rc.d ]
+ then
+ invoke-rc.d gnunet-daemon stop || exit 0
+ else
+ /etc/init.d/gnunet-daemon stop || exit 0
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
Copied: GNUnet/debian/gnunet-server.templates (from rev 6717,
GNUnet/debian/gnunet-daemon.templates)
===================================================================
--- GNUnet/debian/gnunet-server.templates (rev 0)
+++ GNUnet/debian/gnunet-server.templates 2008-04-17 07:15:19 UTC (rev
6718)
@@ -0,0 +1,35 @@
+# These templates have been reviewed by the debian-l10n-english
+# team
+#
+# If modifications/additions/rewording are needed, please ask
+# for an advice to address@hidden
+#
+# Even minor modifications require translation updates and such
+# changes should be coordinated with translators and reviewers.
+
+Template: gnunet-daemon/launch_at_startup
+Type: boolean
+Default: true
+_Description: Should the GNUnet daemon be launched on boot?
+ If you choose this option, a GNUnet server will be started each time
+ the system is launched. Otherwise, you will need to launch
+ GNUnet each time you want to use it.
+
+Template: gnunet-daemon/gnunet_user
+Type: string
+Default: gnunet
+_Description: GNUnet user:
+ Please choose the user that the GNUnet daemon process will run as.
+ .
+ This should be a dedicated account. If the specified account does not
+ already exist, it will automatically be created, with no login shell.
+
+Template: gnunet-daemon/gnunet_group
+Type: string
+Default: gnunet
+_Description: GNUnet group:
+ Please choose the group that the GNUnet daemon process will run as.
+ .
+ This should be a dedicated group, not one that already owns data.
+ Only the members of this group will have access to GNUnet data, and
+ be allowed to start and stop the GNUnet server.
Deleted: GNUnet/debian/gnunet-tools.manpages
===================================================================
--- GNUnet/debian/gnunet-tools.manpages 2008-04-17 03:52:44 UTC (rev 6717)
+++ GNUnet/debian/gnunet-tools.manpages 2008-04-17 07:15:19 UTC (rev 6718)
@@ -1 +0,0 @@
-doc/man/gnunet-setup.1
Deleted: GNUnet/debian/gnunet-tools.postinst.debhelper
===================================================================
--- GNUnet/debian/gnunet-tools.postinst.debhelper 2008-04-17 03:52:44 UTC
(rev 6717)
+++ GNUnet/debian/gnunet-tools.postinst.debhelper 2008-04-17 07:15:19 UTC
(rev 6718)
@@ -1,5 +0,0 @@
-# Automatically added by dh_makeshlibs
-if [ "$1" = "configure" ]; then
- ldconfig
-fi
-# End automatically added section
Deleted: GNUnet/debian/gnunet-tools.postrm.debhelper
===================================================================
--- GNUnet/debian/gnunet-tools.postrm.debhelper 2008-04-17 03:52:44 UTC (rev
6717)
+++ GNUnet/debian/gnunet-tools.postrm.debhelper 2008-04-17 07:15:19 UTC (rev
6718)
@@ -1,5 +0,0 @@
-# Automatically added by dh_makeshlibs
-if [ "$1" = "remove" ]; then
- ldconfig
-fi
-# End automatically added section
Deleted: GNUnet/debian/gnunet-tools.substvars
===================================================================
--- GNUnet/debian/gnunet-tools.substvars 2008-04-17 03:52:44 UTC (rev
6717)
+++ GNUnet/debian/gnunet-tools.substvars 2008-04-17 07:15:19 UTC (rev
6718)
@@ -1 +0,0 @@
-shlibs:Depends=gnunet-common, guile-1.8-libs, libatk1.0-0 (>= 1.13.1), libc6
(>= 2.5-0ubuntu1), libcairo2 (>= 1.4.2), libfontconfig1 (>= 2.4.0), libglade2-0
(>= 1:2.5.1), libglib2.0-0 (>= 2.12.9), libgtk2.0-0 (>= 2.10.3), libpango1.0-0
(>= 1.16.2), libx11-6, libxcursor1 (>> 1.1.2), libxext6, libxfixes3 (>=
1:4.0.1), libxi6, libxinerama1, libxml2 (>= 2.6.27), libxrandr2 (>= 2:1.2.0),
libxrender1
Deleted: GNUnet/debian/lintian/gnunet-daemon
===================================================================
--- GNUnet/debian/lintian/gnunet-daemon 2008-04-17 03:52:44 UTC (rev 6717)
+++ GNUnet/debian/lintian/gnunet-daemon 2008-04-17 07:15:19 UTC (rev 6718)
@@ -1 +0,0 @@
-gnunet-daemon: package-name-doesnt-match-sonames
Copied: GNUnet/debian/lintian/gnunet-server (from rev 6717,
GNUnet/debian/lintian/gnunet-daemon)
===================================================================
--- GNUnet/debian/lintian/gnunet-server (rev 0)
+++ GNUnet/debian/lintian/gnunet-server 2008-04-17 07:15:19 UTC (rev 6718)
@@ -0,0 +1 @@
+gnunet-daemon: package-name-doesnt-match-sonames
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r6718 - in GNUnet/debian: . lintian,
gnunet <=