2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: I2P sistemi c++
|
2016-12-25 07:15:46 +01:00
|
|
|
|
# URL: https://github.com/PurpleI2P/i2pd
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: cmake boost miniupnpc websocketpp
|
2016-12-25 07:15:46 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=i2pd
|
|
|
|
|
surum=2.11.0
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(https://github.com/PurpleI2P/${isim}/archive/${surum}.tar.gz
|
2016-12-29 22:50:35 +01:00
|
|
|
|
i2pd.conf
|
|
|
|
|
tunnels.conf)
|
2016-12-25 07:15:46 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd $SRC/$isim-$surum
|
2016-12-25 07:15:46 +01:00
|
|
|
|
cd build
|
|
|
|
|
cmake . -Wno-dev \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
|
-DWITH_UPNP=1 -DWITH_PCH=1 \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
|
make
|
2017-10-28 14:10:23 +02:00
|
|
|
|
_conf_dest=etc/${isim}
|
|
|
|
|
_home_dest=var/lib/${isim}
|
2016-12-25 07:15:46 +01:00
|
|
|
|
_share_dest=usr/share
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd $SRC/$isim-$surum
|
2016-12-25 07:15:46 +01:00
|
|
|
|
|
|
|
|
|
cd build
|
|
|
|
|
make DESTDIR=$PKG install
|
2016-12-29 22:50:35 +01:00
|
|
|
|
install -Dm0644 $SRC/i2pd.conf $PKG/${_conf_dest}/i2pd.conf
|
|
|
|
|
install -Dm0644 $SRC/tunnels.conf $PKG/${_conf_dest}/tunnels.conf
|
2017-10-28 14:10:23 +02:00
|
|
|
|
install -Dm0644 $SRC/$isim-$surum/docs/subscriptions.txt $PKG/${_conf_dest}/subscriptions.txt
|
2016-12-25 07:15:46 +01:00
|
|
|
|
install -d -m0750 $PKG/${_home_dest}
|
|
|
|
|
ln -s /${_conf_dest}/i2pd.conf $PKG/${_home_dest}/i2pd.conf
|
|
|
|
|
ln -s /${_conf_dest}/tunnels.conf $PKG/${_home_dest}/tunnels.conf
|
|
|
|
|
ln -s /${_conf_dest}/subscriptions.txt $PKG/${_home_dest}/subscriptions.txt
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd $SRC/$isim-$surum/contrib
|
|
|
|
|
_dest="$PKG/${_share_dest}/${isim}"
|
2016-12-25 07:15:46 +01:00
|
|
|
|
find ./certificates -type d -exec install -d {} ${_dest}/{} \;
|
|
|
|
|
find ./certificates -type f -exec install -Dm644 {} ${_dest}/{} \;
|
2017-10-28 14:10:23 +02:00
|
|
|
|
ln -s /${_share_dest}/${isim}/certificates $PKG/${_home_dest}/certificates
|
2016-12-25 07:15:46 +01:00
|
|
|
|
|
|
|
|
|
# license
|
2017-10-28 14:10:23 +02:00
|
|
|
|
install -Dm644 $SRC/$isim-$surum/LICENSE "$PKG/${_share_dest}/licenses/${isim}/LICENSE"
|
2016-12-25 07:15:46 +01:00
|
|
|
|
|
|
|
|
|
# docs
|
2017-10-28 14:10:23 +02:00
|
|
|
|
_dest="$PKG/${_share_dest}/doc/${isim}"
|
|
|
|
|
install -Dm644 $SRC/$isim-$surum/README.md "${_dest}/README.md"
|
|
|
|
|
install -Dm644 $SRC/$isim-$surum/docs/configuration.md "${_dest}/configuration.md"
|
|
|
|
|
install -Dm644 $SRC/$isim-$surum/docs/family.md "${_dest}/family.md"
|
|
|
|
|
install -Dm644 $SRC/$isim-$surum/docs/config_opts_after_2.3.0.md "${_dest}/config_opts_after_2.3.0.md"
|
2016-12-25 07:15:46 +01:00
|
|
|
|
|
|
|
|
|
# remove src folder
|
|
|
|
|
rm -r "$PKG/usr/src"
|
|
|
|
|
|
|
|
|
|
#man
|
2017-10-28 14:10:23 +02:00
|
|
|
|
install -Dm644 $SRC/$isim-$surum/debian/i2pd.1 "$PKG/${_share_dest}/man/man1/i2pd.1"
|
2016-12-25 07:15:46 +01:00
|
|
|
|
|
|
|
|
|
chmod -R o= $PKG/${_home_dest}
|
|
|
|
|
}
|