From e1f9e73687de6d0075bb2fde23d9f55dc28fc870 Mon Sep 17 00:00:00 2001 From: milisman Date: Tue, 10 May 2016 01:28:37 +0000 Subject: [PATCH] connman-paketlendi --- bin/odkp | 2 + talimatname/genel/connman/rc.connmand | 22 ++++++++ talimatname/genel/connman/talimat | 34 +++++++++++++ talimatname/genel/iptables/talimat | 45 ++++++---------- talimatname/genel/openconnect/talimat | 21 ++++++++ talimatname/genel/openvpn/openvpnd | 65 ++++++++++++++++++++++++ talimatname/genel/openvpn/talimat | 26 ++++++++++ talimatname/genel/vpnc/talimat | 17 +++++++ talimatname/genel/wpa-supplicant/talimat | 2 +- talimatname/genel/xtables-addons/talimat | 22 ++++++++ 10 files changed, 226 insertions(+), 30 deletions(-) create mode 100755 bin/odkp create mode 100644 talimatname/genel/connman/rc.connmand create mode 100644 talimatname/genel/connman/talimat create mode 100644 talimatname/genel/openconnect/talimat create mode 100644 talimatname/genel/openvpn/openvpnd create mode 100644 talimatname/genel/openvpn/talimat create mode 100644 talimatname/genel/vpnc/talimat create mode 100644 talimatname/genel/xtables-addons/talimat diff --git a/bin/odkp b/bin/odkp new file mode 100755 index 000000000..0b54b151a --- /dev/null +++ b/bin/odkp @@ -0,0 +1,2 @@ +mps -G +mps -kur $1 && mps -derle $1 diff --git a/talimatname/genel/connman/rc.connmand b/talimatname/genel/connman/rc.connmand new file mode 100644 index 000000000..575ac670e --- /dev/null +++ b/talimatname/genel/connman/rc.connmand @@ -0,0 +1,22 @@ +# +# /etc/rc.d/connamnd: start/stop connman +# + +case $1 in + start) + connmand + ;; + stop) + killall connmand + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "Usage: $0 [start|stop|restart]" + ;; +esac + +# End of file +# vim: set ft=sh noet : diff --git a/talimatname/genel/connman/talimat b/talimatname/genel/connman/talimat new file mode 100644 index 000000000..0eb6715ab --- /dev/null +++ b/talimatname/genel/connman/talimat @@ -0,0 +1,34 @@ +# Description: Wireless LAN network daemon. (git checkout) +# URL: https://01.org/connman +# Packager: milisarge +# Depends on: dbus gnutls glib xtables-addons openconnect openvpn wpa-supplicant +# Optional: pptp bluez + +name=connman +version=git +release=1 +source=(rc.connmand) + +build() { + cd $DERLEME_KAYNAKDIZIN + + if cd $name; then + git fetch -q; git reset --hard origin/master + else + git clone git://git.kernel.org/pub/scm/network/connman/connman.git -b master $name + cd $name + fi + + + ./bootstrap-configure + ./configure --prefix=/usr \ + --bindir=/usr/bin \ + --mandir=/usr/share/man \ + --enable-openvpn \ + --enable-client \ + --enable-polkit + + make + make DESTDIR=$PKG install + install -D -m 0755 $SRC/rc.connmand $PKG/etc/rc.d/init.d/connmand +} diff --git a/talimatname/genel/iptables/talimat b/talimatname/genel/iptables/talimat index 3f2e7a116..6cc34d830 100644 --- a/talimatname/genel/iptables/talimat +++ b/talimatname/genel/iptables/talimat @@ -1,35 +1,22 @@ -# Description: The principal firewall tool for Linux. -# URL: http://www.iptables.org/ -# Packager: pierre at nutyx dot org +# Description: A Linux kernel packet filter control tool +# URL: http://www.iptables.org/ +# Packager: milisarge +# Depends on: name=iptables version=1.6.0 release=1 +source=(ftp://ftp.netfilter.org/pub/iptables/$name-$version.tar.bz2) -source=( http://www.netfilter.org/projects/iptables/files/$name-$version.tar.bz2) -build() { -source /etc/blfs-bootscripts -wget http://www.linuxfromscratch.org/blfs/downloads/svn/blfs-bootscripts-$scriptsversion.tar.bz2 -tar xvf $scripts-$scriptsversion.tar.bz2 - -cd $name-$version - -./configure --prefix=/usr \ ---sbindir=/sbin \ ---with-xtlibdir=/lib/xtables \ ---with-pkgconfigdir=/usr/lib/pkgconfig \ ---enable-libipq \ ---disable-nftables \ ---enable-devel -make -make DESTDIR=$PKG install - -ln -sfv ../../sbin/xtables-multi $PKG/usr/bin/iptables-xml -for file in ip4tc ip6tc ipq iptc xtables -do - mv -v $PKG/usr/lib/lib${file}.so.* $PKG/lib - ln -sfv ../../lib/$(readlink $PKG/usr/lib/lib${file}.so) $PKG/usr/lib/${file}.so -done -cd ../$scripts-$scriptsversion -make DESTDIR=$PKG install-$name +build () { + cd $name-$version + ./configure --prefix=/usr \ + --libexecdir=/usr/lib \ + --enable-libipq \ + --with-xtlibdir=/lib/xtables \ + --enable-devel \ + --with-pkgconfigdir=/usr/lib/pkgconfig \ + --disable-nftables + make + make DESTDIR=$PKG install } diff --git a/talimatname/genel/openconnect/talimat b/talimatname/genel/openconnect/talimat new file mode 100644 index 000000000..b5a5226a7 --- /dev/null +++ b/talimatname/genel/openconnect/talimat @@ -0,0 +1,21 @@ +# Description: An SSL VPN client. +# URL: http://infradead.org/openconnect +# Packager: milisarge +# Depends on: libxml2 openssl pkg-config vpnc zlib + +name=openconnect +version=7.06 +release=1 +source=(ftp://ftp.infradead.org/pub/$name/$name-$version.tar.gz) + +build() { + cd $name-$version + + ./configure --prefix=/usr \ + --bindir=/usr/bin \ + --mandir=/usr/share/man \ + --disable-static + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/openvpn/openvpnd b/talimatname/genel/openvpn/openvpnd new file mode 100644 index 000000000..62ce72f0f --- /dev/null +++ b/talimatname/genel/openvpn/openvpnd @@ -0,0 +1,65 @@ +#!/bin/sh +# +# /etc/rc.d/openvpn: start/stop openvpn daemon +# + +CONFDIR=/etc/openvpn +RUNDIR=/var/run + +# optional arguments to openvpn +OPTARGS="--fast-io" + +usage() { + echo "Usage: $0 [start|stop|restart] " + exit 0 +} + +# require a config name to be specified +if [ -z "$2" ] +then + usage +fi + +CONF=${CONFDIR}/${2}.conf +PID=${RUNDIR}/openvpn.${2}.pid + +# check for the existence of the specified config +if [ ! -f ${CONF} ] +then + echo "Can't find config file ${CONF}! Exiting." + exit 1 +fi + +case $1 in + start) + # check for an existing PID; this tunnel may already be running + if [ -f ${PID} ] + then + echo "VPN '${2}' appears to be running already. If not, remove the stale PID file '${PID}'. Exiting." + exit 2 + fi + # start the specified VPN config + echo "Starting VPN '${2}'..." + /usr/sbin/openvpn --config ${CONF} --writepid ${PID} --daemon ovpn-${2} ${OPTARGS} + ;; + stop) + # check for an existing PID; this tunnel should already be running + if [ ! -f ${PID} ] + then + echo "VPN '${2}' doesn't appear to be running. Exiting." + exit 3 + fi + # stop the specified VPN config + echo "Stopping VPN '${2}'..." + kill `cat ${PID}` + rm -f ${PID} + ;; + restart) + ${0} stop ${2}; sleep 3; ${0} start ${2} + ;; + *) + usage + ;; +esac + +# End of file diff --git a/talimatname/genel/openvpn/talimat b/talimatname/genel/openvpn/talimat new file mode 100644 index 000000000..254a452c2 --- /dev/null +++ b/talimatname/genel/openvpn/talimat @@ -0,0 +1,26 @@ +# Description: VPN Client +# URL: http://www.openvpn.net +# Packager: milisarge +# Depends on: lzo + +name=openvpn +version=2.3.10 +release=1 +source=(http://swupdate.openvpn.net/community/releases/$name-$version.tar.gz \ + openvpnd) + +build() { + install -D -m 755 openvpnd $PKG/etc/rc.d/init.d/openvpn + cd $name-$version + + ./configure --prefix=/usr \ + --mandir=/usr/man \ + --enable-iproute2 \ + --disable-plugin-auth-pam + make + make DESTDIR=$PKG install + if [ -d $PKG/usr/share/doc ];then + rm -r $PKG/usr/share/doc + fi + +} diff --git a/talimatname/genel/vpnc/talimat b/talimatname/genel/vpnc/talimat new file mode 100644 index 000000000..dbc849598 --- /dev/null +++ b/talimatname/genel/vpnc/talimat @@ -0,0 +1,17 @@ +# Description: Client for cisco vpn concentrator. +# URL: https://www.unix-ag.uni-kl.de/~massar/vpnc/ +# Packager: milisarge +# Depends on: libgcrypt + +name=vpnc +version=0.5.3 +release=1 +source=(https://www.unix-ag.uni-kl.de/~massar/$name/$name-$version.tar.gz) + +build() { + cd $name-$version + + make + make DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/share/man install + install -Dm755 vpnc-script $PKG/etc/vpnc/vpnc-script +} diff --git a/talimatname/genel/wpa-supplicant/talimat b/talimatname/genel/wpa-supplicant/talimat index 36fcfb5fb..7043339a8 100644 --- a/talimatname/genel/wpa-supplicant/talimat +++ b/talimatname/genel/wpa-supplicant/talimat @@ -1,6 +1,6 @@ # Description: A utility providing key negotiation for WPA wireless networks # URL: http://hostap.epitest.fi/wpa_supplicant -# Packager: pierre at nutyx dot org +# Packager: milisarge # Depends on: libnl dbus libxml2 name=wpa-supplicant diff --git a/talimatname/genel/xtables-addons/talimat b/talimatname/genel/xtables-addons/talimat new file mode 100644 index 000000000..6d5288953 --- /dev/null +++ b/talimatname/genel/xtables-addons/talimat @@ -0,0 +1,22 @@ +# Description: Xtables-addons is the proclaimed successor to patch-o-matic(-ng). It contains extensions that were not accepted in the main Xtables package. +# URL: http://xtables-addons.sourceforge.net/ +# Packager: milisarge +# Depends on: iptables libmnl + +name=xtables-addons +version=2.10 +release=1 +source=(http://downloads.sourceforge.net/project/$name/Xtables-addons/$name-$version.tar.xz) + +build() { + cd $name-$version + + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --mandir=/usr/man \ + --disable-dependency-tracking + + make + make DESTDIR=$PKG install +}