Changeset b6fab82


Ignore:
Timestamp:
May 25, 2011 11:09:58 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
e786da2
Parents:
150cb303
Message:

Debian packaging fixes

Files:
32 added
9 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r150cb303 rb6fab82  
    4646   </target>
    4747    <target name="debianhowto">
    48         <echo message="To build debian packages, you must run dpkg-buildpackage as root in the source directory. It will then run ant for you. dpkg-buildpackage is found in the 'dpkg-dev' package. Also it should work fine to use the 'fakeroot' package with dpkg-buildpackage, if you don't want to run as root. Please read 'man dpkg-buildpackage' before building any packages yourself." />
     48            <echo message="To build debian packages, you must make sure that you have" />
     49            <echo message="the necessary build-dependencies installed." />
     50            <echo message="The packages required to build can be found in the file "/>
     51            <echo message="&quot;debian/control&quot; in both the Build-Depends and Build-Depends-Indep fields."/>
     52            <echo message="In addition to those packages, be sure to install &quot;fakeroot&quot;,"/>
     53            <echo message="&quot;quilt&quot; and &quot;build-essential&quot;!" />
     54            <echo message="" />
     55            <echo message="The following command will install all dependencies for you:" />
     56            <echo message="apt-get install junit debhelper ant debconf default-jdk libgmp3-dev po-debconf fakeroot build-essential quilt" />
     57            <echo message=" " />
     58            <echo message="Once the dependencies are installed, run &quot;ant debian&quot;"/>
     59            <echo message="to patch the source and build the packages." />
    4960    </target>
    5061    <target name="dist" depends="pkg, javadoc">
     
    10311042    </target>
    10321043
    1033     <target name="debian" depends="distclean, debian-source, debian-binary" />
    1034 
    1035     <target name="debian-binary" depends="buildProperties" >
    1036         <echo message="Did you update the version in these files?" />
    1037         <exec executable="ls" failonerror="true">
    1038             <arg value="-l" />
    1039             <arg value="debian/changelog" />
    1040         </exec>
     1044    <target name="debian" depends="debian-clean, debian-binary" />
     1045
     1046    <target name="debian-binary" >
     1047        <echo message="Did you update the version using dch -i?" />
     1048        <echo message=" " />
     1049        <echo message="If the changelog was not updated with dch -i, press" />
     1050        <echo message="press CTRL+C to abort building this Debian package." />
     1051        <echo message="" />
     1052        <echo message="Pausing build for ten seconds to give enough time to read this notice." />
     1053        <exec executable="sleep" failonerror="true">
     1054                <arg value="10" />
     1055        </exec>
    10411056        <echo message="====================" />
    1042         <!-- bundle the 20MB jetty 5 lib since there probably isn't a deb for it -->
     1057        <!-- bundle the jetty 5 lib since there isn't a deb for it -->
    10431058        <ant dir="apps/jetty" target="ensureJettylib" />
    10441059       
    1045         <exec dir="debian" executable="./buildpackage.sh" failonerror="true">
    1046             <arg value="i386" />
    1047         </exec>
    1048         <exec dir="debian" executable="./buildpackage.sh" failonerror="true">
    1049             <arg value="amd64" />
    1050         </exec>
    1051     </target>
    1052     <target name="debian-source" depends="buildProperties" >
    1053         <!-- bundle the 20MB jetty 5 lib since there probably isn't a deb for it -->
    1054         <ant dir="apps/jetty" target="ensureJettylib" />
    1055         <echo message="Did you update the version in these files?" />
    1056         <exec executable="ls" failonerror="true">
    1057             <arg value="-l" />
    1058             <arg value="debian/changelog" />
     1060        <exec executable="fakeroot" failonerror="true">
     1061            <arg value="debian/rules" />
     1062            <arg value="patch" />
     1063            <arg value="binary" />
     1064            <arg value="clean" />
     1065        </exec>
     1066        <delete dir=".pc" />
     1067    </target>
     1068    <target name="debian-clean" depends="buildProperties" >
     1069        <exec executable="fakeroot" failonerror="true">
     1070            <arg value="debian/rules" />
     1071            <arg value="clean" />
     1072        </exec>
     1073        <delete dir="./.pc" />
     1074    </target>
     1075    <target name="debian-patch" depends="buildProperties" >
     1076        <exec executable="quilt" failonerror="true">
     1077            <arg value="-a" />
     1078            <arg value="push" />
    10591079        </exec>
    10601080        <echo message="====================" />
    1061         <exec dir="debian" executable="./buildpackage.sh" failonerror="true">
    1062             <arg value="source" />
    1063         </exec>
    1064     </target>
     1081    </target>
     1082    <target name="debian-unpatch" depends="buildProperties">
     1083        <exec executable="quilt" failonerror="false">
     1084            <arg value="-a" />
     1085            <arg value="pop" />
     1086        </exec>
     1087    </target>
     1088
    10651089    <target name="debianrepo" depends="debian">
    10661090        <exec dir="debian" executable="./makerepo.sh" failonerror="true"/>
  • debian/changelog

    r150cb303 rb6fab82  
    1 i2p (0.8.1-4) all; urgency=low
    2   * I2P 0.8.1-6
    3   * Closes: #448638
    4  -- Hungry Hobo <HungryHobo@i2pmail.org>  Mon, 24 Nov 2010 17:14:57 +0000
     1i2p (0.8.6-5) UNRELEASED; urgency=low
    52
    6 i2p (0.8.1-3) all; urgency=low
    7   * I2P 0.8.1-3
    8  -- Hungry Hobo <HungryHobo@i2pmail.org>  Mon, 21 Nov 2010 17:14:57 +0000
     3  * Remove /etc/i2p/wrapper.service and add the changed configs to the
     4    initscript.
     5  * Create debian/copyright at build time.
    96
    10 i2p (0.8.1) all; urgency=low
    11   * Speedups
    12   * Bugfixes
    13   * I2PSnark UI redesign
    14   * Debian packaging improvements
    15  -- Hungry Hobo <HungryHobo@i2pmail.org>  Mon, 18 Nov 2010 17:14:57 +0000
     7 -- Kill Your TV <killyourtv@i2pmail.org>  Wed, 25 May 2011 21:11:40 +0000
    168
    17 i2p (0.8.0-1) all; urgency=low
    18   * I2P 0.8
    19   * Debian packaging improvements
    20  -- Hungry Hobo <HungryHobo@i2pmail.org>  Mon, 08 Nov 2010 17:14:57 +0000
    219
    22 i2p (0.7.10-0) testing; urgency=low
    23   * tweaks
    24     um...
    25  -- zzz <nobody@nowhere.invalid>  Wed, 31 Jan 2010 17:14:57 +0000
     10i2p (0.8.6-4) stable; urgency=low
    2611
    27 i2p (0.7-0) testing; urgency=low
    28   * just setting this debian thing up
    29     um...
    30  -- dream <nobody@nowhere.invalid>  Wed, 01 Jan 2009 17:14:57 +0000
     12  * backported patch from 9a26dcaef3687ff7fa08cf3b3eb2180ebb2dedde to fix
     13    missing "addWebApplications" in Jetty.
     14
     15 -- Kill Your TV <killyourtv@i2pmail.org>  Sun, 22 May 2011 19:00:37 +0000
     16
     17i2p (0.8.6-3) stable; urgency=low
     18
     19  [Kill Your TV]
     20  * Creating libjbigi-jni packages again. Backported patch from MTN so that
     21    jbigi can be built for i386
     22  * Drop build-dep on unzip since jbigi can be built.
     23  * Check to see if doc/libjbigi-jni is a directory and remove it. It is
     24    supposed to be a symlink to doc/i2p
     25  * Don't chown $I2P to i2psvc
     26  * Add Build-Dep for tor-geoipdb and remove from debian/
     27  * Add launch-i2psnark to doc/examples
     28  * Remove obsolete build-dep on default-jdk-builddep
     29   [Karl Goetz]
     30  * Move adduser to depends from pre-depends
     31  * Tidy postinst
     32
     33 -- Kill Your TV <killyourtv@i2pmail.org>  Fri, 20 May 2011 22:03:52 +0000
     34
     35i2p (0.8.6-2) stable; urgency=low
     36
     37  * Fix permissions bug for /var/run/i2p, reported by "signhere" on IRC
     38
     39 -- Kill Your TV <killyourtv@i2pmail.org>  Tue, 17 May 2011 16:30:29 +0000
     40
     41i2p (0.8.6-1) stable; urgency=low
     42
     43  * New upstream version
     44
     45 -- Kill Your TV <killyourtv@i2pmail.org>  Tue, 17 May 2011 12:30:07 +0000
     46
     47i2p (0.8.5-4) stable; urgency=low
     48
     49  * Correct lintian error
     50
     51 -- Kill Your TV <killyourtv@i2pmail.org>  Sun, 15 May 2011 16:20:39 +0000
     52
     53i2p (0.8.5-3) stable; urgency=low
     54
     55  * *Sigh* Set debian/i2p.default run_daemon to false
     56
     57 -- Kill Your TV <killyourtv@i2pmail.org>  Fri, 29 Apr 2011 09:54:39 +0000
     58
     59i2p (0.8.5-2) stable; urgency=low
     60
     61  * Change debconf priority to medium.
     62  * RUN_DAEMON defaults to false. Earlier versions defaulted to true. Since
     63    the priority is changing, this should as well.
     64  * Split jbigi into its own source package
     65  * Update geoip.txt
     66  * Update Suggests:
     67
     68 -- Kill Your TV <killyourtv@i2pmail.org>  Mon, 25 Apr 2011 17:00:43 +0000
     69
     70i2p (0.8.5-1) stable; urgency=low
     71
     72  * New upstream
     73
     74 -- Kill Your TV <killyourtv@i2pmail.org>  Mon, 18 Apr 2011 15:41:42 +0000
     75
     76i2p (0.8.4-4) stable; urgency=low
     77
     78  * Update geoip from tor-0.2.2.23-alpha
     79
     80 -- Kill Your TV <killyourtv@i2pmail.org>  Sat, 09 Apr 2011 23:34:11 +0000
     81
     82i2p (0.8.4-3) stable; urgency=low
     83
     84  * Back out upgrade 'do you want to reboot' logic since it's utterly borked.
     85
     86 -- Kill Your TV <killyourtv@i2pmail.org>  Thu, 17 Mar 2011 18:54:09 +0000
     87
     88i2p (0.8.4-2) stable; urgency=low
     89
     90  * Stop including /usr/share/i2p/lib/jbigi.jar.
     91  * Compile a dynamic jbigi and create a new package, libjbigi-jni. Since I
     92    can't get jcpuid to compile I take this library from jbigi.jar.
     93    Unfortunately it was not compiled with -fPIC, causing lintian to complain.
     94    Additionally it is a 32bit compile, forcing libc-i386 to be installed on
     95    amd64 boxes.
     96  * Add dependency on libc-i386 because of jcpuid and a build-dep on unzip for
     97    the same reason.
     98  * Don't display errors generated from chowning files that don't exist.
     99  * Bug fix: Somehow I missed packaging the geoip information before. Oops.
     100  * Bug fix: Add history.txt to /usr/share/i2p. I didn't realize it was shown
     101    in the console at /help.
     102  * Since I'm packaging the missing geoip information, I use an updated
     103    geoiodb from tor (taken from Debian package tor-geoipdb version
     104    0.2.2.22-alpha-1)
     105  * Patching countries.txt to add entries that are in Maxmind's database.
     106  * Now using debconf to ask about running as a daemon.
     107  * From this point forward, users will be asked to confirm that they want to
     108    upgrade this package, due to it requiring a router reboot.
     109  * Updated README.Debian to better explain differences compared with
     110    upstream.
     111  * Add history.txt to /usr/share/i2p
     112
     113 -- Kill Your TV <killyourtv@i2pmail.org>  Sun, 13 Mar 2011 10:45:47 +0000
     114
     115i2p (0.8.4-1) stable; urgency=low
     116
     117  * New upstream version, monotone revision
     118    fea6969d789a6b85396439be9906abb9b4a4a405
     119
     120 -- Kill Your TV <killyourtv@mail.i2p>  Thu, 03 Mar 2011 11:37:37 +0000
     121
     122i2p (0.8.3-2) testing; urgency=low
     123
     124  * Minor changes to initscript
     125
     126 -- Kill Your TV <killyourtv@mail.i2p>  Wed, 26 Jan 2011 14:29:50 +0000
     127
     128i2p (0.8.3-1) testing; urgency=low
     129
     130  * New upstream
     131
     132 -- Kill Your TV <killyourtv@mail.i2p>  Mon, 24 Jan 2011 20:23:38 +0000
     133
     134i2p (0.8.2-1) testing; urgency=low
     135
     136  * Initial packaging
     137
     138 -- Kill Your TV <killyourtv@mail.i2p>  Sun, 23 Jan 2011 00:03:31 +0000
     139
  • debian/control

    r150cb303 rb6fab82  
    11Source: i2p
    2 Maintainer: Hungry Hobo <HungryHobo@i2pmail.org>
     2Maintainer: Kill Your TV <killyourtv@i2pmail.org>
     3Uploaders: zzz <zzz@i2pmail.org>
    34Section: net
    4 Standards-Version: 3.8.4
     5Standards-Version: 3.9.2
    56Priority: optional
     7Bugs: mailto:killyourtv@i2pmail.org
    68Homepage: http://www.i2p2.de/
    7 Build-Depends: libc6-dev (>= 2.10), sun-java6-jdk | openjdk-6-jdk | default-jdk | java-sdk, ant, fakeroot, gettext
     9Build-Depends: debhelper (>= 7.0.50~),
     10 ant,
     11 debconf,
     12 default-jdk,
     13 libgmp3-dev,
     14 po-debconf
     15Build-Depends-Indep: junit, tor-geoipdb
    816
    917Package: i2p
    10 Architecture: i386 amd64
     18Architecture: all
    1119Section: net
    1220Priority: optional
    13 Depends: ${shlibs:Depends}, sun-java6-jre | default-jre | java-runtime
     21Depends: ${misc:Depends}, ${java:Depends}, ${shlibs:Depends}, default-jre | java5-runtime | java6-runtime,
     22 adduser,
     23 libjbigi-jni (>= ${source:Version}),
     24 libjbigi-jni (<< ${source:Version}.1~),
     25 lsb-base (>= 3.2-14),
     26 service-wrapper
     27Suggests: tor,
     28 i2pfox,
     29 mail-client,
     30 mail-reader,
     31 news-reader,
     32 polipo,
     33 privoxy,
     34 syndie,
     35 www-browser,
     36 xul-ext-torbutton
    1437Description: Load-balanced unspoofable packet switching network
    1538 I2P is an anonymizing network, offering a simple layer that identity-sensitive
     
    1740 layers of encryption, and the network is both distributed and dynamic, with no
    1841 trusted parties.
    19 Homepage: http://www.i2p2.de/
     42
     43Package: libjbigi-jni
     44Architecture: any
     45Section: java
     46Priority: optional
     47Depends: ${misc:Depends}, ${shlibs:Depends}
     48Homepage: http://www.i2p2.de/jbigi
     49Description: Java Big Integer library
     50 This Package contains the libjbigi JNI library
     51 .
     52 libjbigi is a math library that is part of the I2P installation.  Use of this
     53 library greatly enhances the efficiency of cryptographic algorithms, such as
     54 the ones used by I2P. You can expect to see a 5-7x speed improvement on certain
     55 tasks, such as elGamal encryption/decryption.
     56
     57Package: i2p-doc
     58Architecture: all
     59Section: doc
     60Depends: ${misc:Depends}
     61Suggests: i2p, default-jdk-doc
     62Description: Documentation for I2P
     63 I2P is an anonymizing network, offering a simple layer that identity-sensitive
     64 applications can use to securely communicate. All data is wrapped with several
     65 layers of encryption, and the network is both distributed and dynamic, with no
     66 trusted parties.
     67 .
     68 This package contains the Javadoc files.
  • debian/rules

    r150cb303 rb6fab82  
    11#!/usr/bin/make -f
    22
    3 VERSION=`grep String\ VERSION core/java/src/net/i2p/CoreVersion.java | cut -d\" -f2`
    4 SOURCEURL=http://mirror.i2p2.de/i2psource_${VERSION}.tar.bz2
     3# Quoting Policy version 3.9.2.0, 2011-04-07 section 4.9:
    54
    6 DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
    7 ifeq ($(DEB_HOST_ARCH),i386)
    8 wrapperpath = installer/lib/wrapper/linux
    9 else ifeq ($(DEB_HOST_ARCH),amd64)
    10 wrapperpath = installer/lib/wrapper/linux64
    11 # other architectures could be supported by using runplain.sh
    12 endif
     5# /start quote
     6# For some packages, notably ones where the same source tree is compiled in
     7# different ways to produce two binary packages, the build target does not make
     8# much sense. For these packages it is good enough to provide two (or more)
     9# targets (build-a and build-b or whatever) for each of the ways of building the
     10# package, and a build target that does nothing. The binary target will have to
     11# build the package in each of the possible ways and make the binary package out
     12# of each.
     13# ...
     14# When a package has a configuration and build routine which takes a long time,
     15# or when the makefiles are poorly designed, or when build needs to run clean
     16# first, it is a good idea to touch build when the build process is complete.
     17# This will ensure that if debian/rules build is run again it will not rebuild
     18# the whole program.
     19# /end quote
     20
     21# Since that fits building I2P very well, we override the build target.
     22#
    1323
    1424build:
    15         echo Target Architecture is $(DEB_HOST_ARCH)
    16 ifndef wrapperpath
    17         @echo "Architecture not supported: $(DEB_HOST_ARCH)"
    18         exit 1
    19 endif
    20         ant preppkg-linux-only
     25        @echo 'The build target is disabled. Use the appropriate binary target.'
     26
     27JAVA_HOME=/usr/lib/jvm/default-java
     28I2P=$(CURDIR)/pkg-temp
     29export JAVA_HOME I2P
     30#export DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
     31
     32%:
     33        dh $@ --with quilt
     34
     35clean: createcopyright
     36
     37override_dh_auto_clean:
     38        dh_auto_clean
     39        ant distclean
     40        # The next line is used by KYTV
     41        # when building from source packages
     42        #rm -f apps/jetty/jetty-5.1.15.tgz
     43        rm -f core/c/jbigi/*.[s]o
     44        rm -rf core/c/jcpuid/lib/
     45        debconf-updatepo
     46
     47override_dh_auto_build:
     48
     49binary-indep: build-indep
     50build-indep:
     51        dh_prep
     52        # The next line is used by KYTV when building from source packages
     53        #[ -r jetty/jetty-5.1.15.tgz ] && ln -sf $(CURDIR)/jetty/jetty-5.1.15.tgz $(CURDIR)/apps/jetty/jetty-5.1.15.tgz
     54        ant preppkg-linux javadoc
     55        mv build/javadoc build/api
     56        -cp -fv /usr/share/tor/geoip $(CURDIR)/pkg-temp/geoip/geoip.txt
    2157       
    22         mkdir -p debian/tmp/etc/init.d
    23         mkdir -p debian/tmp/etc/i2p
    24         mkdir -p debian/tmp/usr/share/i2p/lib
    25         mkdir -p debian/tmp/usr/share/doc/i2p
    26         mkdir -p debian/tmp/usr/share/man/man1
    27         mkdir -p debian/tmp/usr/lib/i2p
    28         mkdir -p debian/tmp/usr/bin
    29        
    30         cp -a debian/scripts/init debian/tmp/etc/init.d/i2p
    31        
    32         @# copy config templates to /etc/i2p
    33         cp -a pkg-temp/blocklist.txt debian/tmp/etc/i2p/
    34         cp -a pkg-temp/clients.config debian/tmp/etc/i2p/
    35         cp -a pkg-temp/hosts.txt debian/tmp/etc/i2p/
    36         cp -a pkg-temp/i2psnark.config debian/tmp/etc/i2p/
    37         cp -a pkg-temp/i2ptunnel.config debian/tmp/etc/i2p/
    38         cp -a pkg-temp/jetty-i2psnark.xml debian/tmp/etc/i2p/
    39         cp -a pkg-temp/systray.config debian/tmp/etc/i2p/
    40        
    41         @# copy architecture independent files to /usr/share/i2p and create symlinks to /etc/i2p/
    42         ln -s /etc/i2p/blocklist.txt debian/tmp/usr/share/i2p/blocklist.txt
    43         ln -s /etc/i2p/clients.config debian/tmp/usr/share/i2p/clients.config
    44         ln -s /etc/i2p/hosts.txt debian/tmp/usr/share/i2p/hosts.txt
    45         ln -s /etc/i2p/i2psnark.config debian/tmp/usr/share/i2p/i2psnark.config
    46         ln -s /etc/i2p/i2ptunnel.config debian/tmp/usr/share/i2p/i2ptunnel.config
    47         ln -s /etc/i2p/jetty-i2psnark.xml debian/tmp/usr/share/i2p/jetty-i2psnark.xml
    48         ln -s /etc/i2p/systray.config debian/tmp/usr/share/i2p/systray.config
    49         ln -s /etc/i2p/wrapper.config debian/tmp/usr/share/i2p/wrapper.config
    50         cp -a pkg-temp/docs debian/tmp/usr/share/i2p/
    51         cp -a pkg-temp/eepsite debian/tmp/usr/share/i2p/
    52         cp -a pkg-temp/geoip debian/tmp/usr/share/i2p/
    53         cp -a pkg-temp/lib/*.jar debian/tmp/usr/share/i2p/lib/
    54         cp -a pkg-temp/scripts debian/tmp/usr/share/i2p/
    55         cp -a pkg-temp/webapps debian/tmp/usr/share/i2p/
    56         cp -a pkg-temp/licenses debian/tmp/usr/share/doc/i2p/
    57         @# Create the Debian copyright file
    58         cat debian/copyright.part1 LICENSE.txt > debian/tmp/usr/share/doc/i2p/copyright
    59         @# delete all license files that are already in /usr/share/common-licenses/
    60         rm debian/tmp/usr/share/doc/i2p/licenses/LICENSE-Apache2.0.txt
    61         rm debian/tmp/usr/share/doc/i2p/licenses/LICENSE-GPLv2.txt
    62         rm debian/tmp/usr/share/doc/i2p/licenses/LICENSE-LGPLv2.1.txt
    6358
    64         @# man pages
    65         gzip -9c installer/resources/man/eepget.1 > debian/tmp/usr/share/man/man1/eepget.1.gz
    66         gzip -9c installer/resources/man/i2prouter.1 > debian/tmp/usr/share/man/man1/i2prouter.1.gz
     59binary-arch: build-arch
     60build-arch:
     61        # build jbigi
     62        cd $(CURDIR)/core/c/jbigi && ./mbuild_jbigi.sh dynamic
     63        # build jcpuid
     64        cd $(CURDIR)/core/c/jcpuid && ./build.sh; fi
    6765
    68         @# copy wrapper files to /usr/lib/i2p (including wrapper.jar because it is architecture dependent)
    69         cp ${wrapperpath}/libwrapper.so debian/tmp/usr/lib/i2p/
    70         cp ${wrapperpath}/wrapper.jar debian/tmp/usr/lib/i2p/
    71         cp ${wrapperpath}/i2psvc debian/tmp/usr/lib/i2p/
    72         chmod +x debian/tmp/usr/lib/i2p/i2psvc
    73         strip debian/tmp/usr/lib/i2p/libwrapper.so
    74         strip debian/tmp/usr/lib/i2p/i2psvc
     66binary: binary-arch binary-indep
    7567
    76         @# copy remaining executables to /usr/bin, replace INSTALL_PATH and SYSTEM_java_io_tmpdir
    77         sed 's|%INSTALL_PATH|/usr/share/i2p|g' pkg-temp/eepget > debian/tmp/usr/bin/eepget
    78         chmod +x debian/tmp/usr/bin/eepget
    79         cat pkg-temp/i2prouter | \
    80             sed 's|$$I2P/i2psvc|/usr/lib/i2p/i2psvc|g' | \
    81             sed 's|$$I2P/wrapper.config|/etc/i2p/wrapper.config|g' | \
    82             sed 's|%INSTALL_PATH|/usr/share/i2p|g' | \
    83             sed 's|%SYSTEM_java_io_tmpdir|/tmp|g' > debian/tmp/usr/bin/i2prouter
    84         chmod +x debian/tmp/usr/bin/i2prouter
    85         @# The first 4 sed commands each replace the first \$INSTALL_PATH that hasn't been replaced
    86         @# wrapper.java.classpath.1 --> /usr/share/i2p/lib/*.jar:/usr/lib/i2p/wrapper.jar
    87         @# wrapper.java.library.path.1 --> /usr/lib/i2p
    88         @# wrapper.java.library.path.2 --> /usr/lib/i2p
    89         @# i2p.dir.base --> /usr/share/i2p
    90         cat pkg-temp/wrapper.config | \
    91             sed '0,/$$INSTALL_PATH\/lib\/\*\.jar/s//\/usr\/share\/i2p\/lib\/*.jar\nwrapper.java.classpath.2=\/usr\/lib\/i2p\/wrapper.jar/' | \
    92             sed '0,/$$INSTALL_PATH/s//\/usr\/lib\/i2p/' | \
    93             sed '0,/$$INSTALL_PATH/s//\/usr\/lib\/i2p/' | \
    94             sed '0,/$$INSTALL_PATH/s//\/usr\/share\/i2p/' | \
    95             sed 's|$$SYSTEM_java_io_tmpdir|/tmp|g' > debian/tmp/etc/i2p/wrapper.config
    96         @# now do runplain.sh
    97         cat pkg-temp/runplain.sh | \
    98             sed 's|-Djava.library.path=$$I2P:$$I2P/lib|-Djava.library.path=/usr/lib/i2p|g' | \
    99             sed 's|%INSTALL_PATH|/usr/share/i2p|g' | \
    100             sed 's|%SYSTEM_java_io_tmpdir|/tmp|g' > debian/tmp/usr/share/i2p/runplain.sh
    101         chmod +x debian/tmp/usr/share/i2p/runplain.sh
    102        
    103         dpkg-shlibdeps debian/tmp/usr/lib/i2p/libwrapper.so
    104         dpkg-shlibdeps debian/tmp/usr/lib/i2p/i2psvc
    105        
    106         touch debian/build
    107        
    108         @# changelog
    109         gzip -9c history.txt > debian/tmp/usr/share/doc/i2p/changelog.gz
    110         gzip -9c debian/changelog > debian/tmp/usr/share/doc/i2p/changelog.Debian.gz
     68createcopyright:
     69        @echo " *** Creating debian/copyright*** "
     70        @rm -f $(CURDIR)/debian/copyright
     71        @/bin/echo -e "This package was Debianized by kytv <killyourtv@i2pmail.org>" >> $(CURDIR)/debian/copyright
     72        @/bin/echo -e "Sun, 23 Jan 2011 20:26:51 +0000" >> $(CURDIR)/debian/copyright
     73        @/bin/echo -e "\nIt was downloaded from http://www.i2p2.de" >> $(CURDIR)/debian/copyright
     74        @/bin/echo -e "\nI2P is tracked upstream using the Monotone VCS" >> $(CURDIR)/debian/copyright
     75        @/bin/echo -e "Complete information on fetching the source with monotone can be found" >> $(CURDIR)/debian/copyright
     76        @/bin/echo -e "at http://www.i2p2.de/newdevelopers#getting-the-i2p-code\n\n\n" >> $(CURDIR)/debian/copyright
     77        @/bin/cat $(CURDIR)/LICENSE.txt >> $(CURDIR)/debian/copyright
    11178
    112 binary: build
    113         mkdir -p debian/tmp/DEBIAN
    114         dpkg-gencontrol
    115         cp -a debian/scripts/postinst debian/scripts/postrm debian/scripts/prerm debian/conffiles debian/tmp/DEBIAN
    116         dpkg-deb -b debian/tmp ..
    11779
    118 binary-arch:
     80override_dh_compress:
     81        dh_compress -X.xsl -X.xml
    11982
    120 binary-indep:
     83override_dh_installchangelogs:
     84        dh_installchangelogs history.txt
    12185
    122 clean:
    123         ant clean
    124         @exit 0
     86override_dh_installdocs:
     87        dh_installdocs -plibjbigi-jni --link-doc=i2p
     88        dh_installdocs --remaining-packages
     89
     90override_dh_dhlibdeps:
     91        dh_shlibdeps -llibjbigi-jni debian/libjbigi-jni/usr/lib/jni/*.so
     92
     93#override_dh_installinit:
     94#       dh_installinit -r
    12595
    12696get-orig-source:
    127         wget ${SOURCEURL}
     97        uscan --verbose --rename --destdir $(CURDIR)/.. --watchfile debian/watch --force-download
Note: See TracChangeset for help on using the changeset viewer.