Changeset bfba732


Ignore:
Timestamp:
Mar 13, 2014 2:29:41 AM (6 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
5d1796b
Parents:
738c5ed
Message:

Debian: Add systemd support (ticket #1208)

Currently just for Debian unstable and Ubuntu Saucy and newer.

Location:
debian
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • debian/changelog

    r738c5ed rbfba732  
     1i2p (0.9.11-2) UNRELEASED; urgency=medium
     2
     3  * systemd support in Ubuntu Saucy (and newer) and Debian unstable (ticket
     4    #1208)
     5  * Set homepage address to geti2p.net
     6  * Bump standards version (no source changes needed)
     7
     8 -- Kill Your TV <killyourtv@i2pmail.org>  Thu, 13 Mar 2014 01:10:46 +0000
     9
    110i2p (0.9.11-1) unstable; urgency=medium
    211
  • debian/control

    r738c5ed rbfba732  
    22Maintainer: Kill Your TV <killyourtv@i2pmail.org>
    33Section: net
    4 Standards-Version: 3.9.4
     4Standards-Version: 3.9.5
    55Priority: optional
    66Bugs: mailto:killyourtv@i2pmail.org
    7 Homepage: http://www.i2p2.de/
    8 Build-Depends: debhelper (>= 7.0.50~),
    9  ant,
    10  debconf,
    11  default-jdk,
    12  gettext,
    13  libgmp3-dev,
    14 # uncomment the next line for PPA builds
    15 # libservice-wrapper-java,
    16  libcommons-logging-java,
    17  po-debconf
     7Homepage: https://geti2p.net
     8Build-Depends: debhelper (>= 7.0.50~)
     9 ,ant (>= 1.8)
     10 ,ant-optional
     11 ,debconf
     12 ,default-jdk | openjdk-7-jdk | openjdk-6-jdk
     13 ,gettext
     14 ,libgmp3-dev
     15# uncomment the next line for official builds
     16# ,libservice-wrapper-java
     17 ,libcommons-logging-java
     18 ,hardening-wrapper
     19 ,po-debconf
     20# Uncomment the next line for Debian unstable or Ubuntu Saucy (and newer)
     21# ,dh-systemd
    1822
    1923Package: i2p
     
    5054 tasks, such as elGamal encryption/decryption.
    5155
    52 Package: i2p-doc
    53 Architecture: all
    54 Section: doc
    55 Depends: ${misc:Depends}
    56 Suggests: i2p, default-jdk-doc
    57 Description: Documentation for I2P
    58  I2P is an anonymizing network, offering a simple layer that identity-sensitive
    59  applications can use to securely communicate. All data is wrapped with several
    60  layers of encryption, and the network is both distributed and dynamic, with no
    61  trusted parties.
    62  .
    63  This package contains the Javadoc files.
     56#Package: i2p-doc
     57#Architecture: all
     58#Section: doc
     59#Depends: ${misc:Depends}
     60#Suggests: i2p, default-jdk-doc
     61#Description: Documentation for I2P
     62# I2P is an anonymizing network, offering a simple layer that identity-sensitive
     63# applications can use to securely communicate. All data is wrapped with several
     64# layers of encryption, and the network is both distributed and dynamic, with no
     65# trusted parties.
     66# .
     67# This package contains the Javadoc files.
    6468
    6569Package: i2p-router
     
    6872Priority: optional
    6973Depends: ${misc:Depends}, ${java:Depends}, ${shlibs:Depends},
    70  openjdk-6-jre-headless | openjdk-7-jre-headless | default-jre-headless | java5-runtime-headless | java6-runtime-headless, libecj-java
     74 openjdk-7-jre-headless | openjdk-6-jre-headless | default-jre-headless | java7-runtime-headless | java6-runtime-headless, libecj-java
    7175Replaces: i2p ( << 0.8.6-5)
    7276Breaks: i2p (<< 0.8.6-5)
    73 Recommends: libjbigi-jni (>= ${source:Version}), libjbigi-jni (<< ${source:Version}.1~), ttf-dejavu
    74 Suggests: tor,
    75  i2p-messenger,
    76  i2phex,
    77  i2p-tahoe-lafs,
    78  imule,
    79  i2pfox,
    80  irc-client,
    81  itoopie,
    82  jircii,
    83  mail-client,
    84  mail-reader,
    85  news-reader,
    86  polipo,
    87  privoxy,
    88  robert,
    89  syndie,
    90  www-browser,
    91  xul-ext-torbutton
     77Recommends: libjbigi-jni, ttf-dejavu
     78Suggests: tor
     79 ,i2p-messenger
     80 ,i2phex
     81 ,i2p-tahoe-lafs
     82 ,imule
     83 ,irc-client
     84 ,itoopie
     85 ,mail-client
     86 ,mail-reader
     87 ,news-reader
     88 ,polipo
     89 ,privox
     90 ,robert
     91 ,syndie
     92 ,www-browser
     93 ,xul-ext-torbutton
    9294Description: Load-balanced unspoofable packet switching network
    9395 I2P is an anonymizing network, offering a simple layer that identity-sensitive
  • debian/i2p.postinst

    r738c5ed rbfba732  
    1 #!/bin/sh  -e
     1#!/bin/sh
     2
     3set -e
    24
    35I2PHOME=/var/lib/i2p
     
    57
    68conffile="/etc/default/i2p"
     9systemdservice="/lib/systemd/system/i2p.service"
    710
    811# Source debconf library -- we have a Depends line
     
    5861        mv -f $conffile.tmp $conffile
    5962
     63        if [ -e "$systemdservice" ]; then
     64            sed -e "s/User=.*/User=$I2PUSER/" < "$systemdservice" > "$systemdservice.tmp"
     65            mv -f "$systemdservice.tmp" "$systemdservice"
     66            chmod 0644 -f "$systemdservice"
     67            if [ -x /bin/systemctl ]; then
     68                    systemctl --system daemon-reload
     69                    if [ $RUN_DAEMON = 'true' ]; then
     70                            systemctl enable i2p.service
     71                    else
     72                            systemctl disable i2p.service
     73                    fi
     74            fi
     75        fi
     76
    6077        sed -e "s/^ *wrapper\.java\.maxmemory=.*/wrapper\.java\.maxmemory=$MEMORYLIMIT/" \
    6178            < /etc/i2p/wrapper.config > /etc/i2p/wrapper.config.tmp
     
    7390            $I2PSYSUSER -e 1 > /dev/null 2>&1 || true
    7491    else
    75         adduser --system --quiet --group --home $I2PHOME $I2PSYSUSER
     92        adduser --system --quiet --group --home $I2PHOME $I2PSYSUSER > /dev/null 2>&1
    7693    fi
    7794
  • debian/rules

    r738c5ed rbfba732  
    3737%:
    3838        dh $@ --with quilt
     39        # with systemd needs dh-systemd which isn't available in Wheezy (except from backports),
     40        # and is only Ubuntu as of "Saucy". The official packages will enable this for Debian unstable and
     41        # Ubuntu Saucy (and newer)
     42        #dh $@ --with systemd,quilt
    3943
    4044clean: createcopyright
     
    5054
    5155override_dh_auto_build:
     56
     57# Uncomment the next override line for systems that support dh-systemd
     58# (currently Debian unstable and Ubuntu Saucy (and newer))
     59#override_dh_systemd_enable:
     60        # We purposely do not set I2P to start at boot.
     61        # This matches the behavior of the initscript
     62        # and the setting RUN_DAEMON=false in /etc/default/i2p
    5263
    5364binary-indep: build-indep
Note: See TracChangeset for help on using the changeset viewer.