diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-dialup/kpnadsl4linux |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-dialup/kpnadsl4linux')
-rw-r--r-- | net-dialup/kpnadsl4linux/Manifest | 7 | ||||
-rw-r--r-- | net-dialup/kpnadsl4linux/files/kpnadsl4linux-1.11-Makefile.patch | 25 | ||||
-rw-r--r-- | net-dialup/kpnadsl4linux/files/kpnadsl4linux-config | 100 | ||||
-rw-r--r-- | net-dialup/kpnadsl4linux/kpnadsl4linux-1.11.ebuild | 46 | ||||
-rw-r--r-- | net-dialup/kpnadsl4linux/metadata.xml | 5 |
5 files changed, 183 insertions, 0 deletions
diff --git a/net-dialup/kpnadsl4linux/Manifest b/net-dialup/kpnadsl4linux/Manifest new file mode 100644 index 000000000000..db73ee2af333 --- /dev/null +++ b/net-dialup/kpnadsl4linux/Manifest @@ -0,0 +1,7 @@ +AUX kpnadsl4linux-1.11-Makefile.patch 637 SHA256 dc98afedb8b6c520c18d7f5178aa463b28fb340abe8cb2f70762bc31619365a9 SHA512 011a541cd696670871f950f53cd8b11f6c91006bf2806500e610fcc8320143401aaa5c7c976b8df1b3ccc84d29e79e3ff1bfe10735784c5646cda02d5623bbe1 WHIRLPOOL fd4f3039f0e94a2b5670c5f27f852a65b2214a790d7eacc0158a7c28cdd9795ca32d8dcf32abc711ceda8c500a4aef94b9cf594280dc40706d3aa72b77c3804a +AUX kpnadsl4linux-config 3773 SHA256 f2109396e113e1d81991110c1299dad670bc6cf7645555c552c66725fc0933fb SHA512 6f2fa43a33b111aadad0253aceafafff3850a46dba05d00752f72215dc2f37fa825337b20292a3f1d17af1a967dcbf425ce4ba4dfea7b84a3d01ede2f035d99a WHIRLPOOL 04360576186224952fb747039b3e431040b09d98e1c34cc5397f014ad60776d9dcb61574ffbde3086494b73b1f5b35f41ac73c934119d4bf83ba307b236c062b +DIST kpnadsl4linux-1.11.tar.gz 15068 SHA256 45be6dfd6c11a4327da622efd947c077bd04c8ae0f812731c9cd3bd9f992d7c3 SHA512 050c879aff115169e6cb0f0bf081a8172a3f4735f7231d1e5d1f245b34a1b522691e7640d146eac3c894a17c2901e59f1f942f7be5a2eed5ce1eb8c96bfef201 WHIRLPOOL ff8bd2d8db5490f1c1d5f47bf21f122c505851f2b48676745c17ba5573efbf5ec14f8a363608e6387ed782f92e411d9ec5afb54b4bb7ef6910ba27085ff55061 +EBUILD kpnadsl4linux-1.11.ebuild 1129 SHA256 ef4dcc36cba52267c0a375d65dcfd7109d45a88add4746f72fa7c674a3dcce44 SHA512 d1f4c3f4947a6db876ed919a7d97ecaf920d5540244d8bcd5fbb7bf4e70e6b05ad11ba49393298bba5114ecc0e0ca8e9c21d52e71132882a14eeaa68f91b56d3 WHIRLPOOL b7d29878bdd3eb0430dc9c4f48770cd47acf6aa1e6535aff1a4e2a5d5b8eae96c18bddb5b04223bf2110ea17e02cfb650f71bfaace133203ac9bd50fe9b5c911 +MISC ChangeLog 2547 SHA256 f8243e3bf01a89ae6fad5ad2b2ef365c6e8ba58796ecb4516b5ed033aeebc0aa SHA512 7badf99dd62e8edc47f37144f2a4bf0a9973a6f27c2749bc64c5245d8e184a7308d15252b2c77b83b862661d966f4824ec4cc52c5bf4b90050712f5eacd16290 WHIRLPOOL 95f3cfe3935a10aa5f683c22ada893db6ce102b02297ed122459bd2f69362a2f260ff2c9271d654cbcd6b35f35de231f34505ceee1931643d208783a7e1d93fd +MISC ChangeLog-2015 2725 SHA256 4f768cdab158033f696fb06cf93153fb4e1e9a35183eac3900c9da32a932d2b3 SHA512 0afea5d64bedf36f5eccc68d410faece7377ca3a2b20e95ced2837e87849f8070f76d2c20f43bcf78e062f3778a169179d70ee151330944dd54fa72978d2e158 WHIRLPOOL 91d7749df3454558e707c44672df5a8e73dd052086fad44e016d09542184dfe464321542c5a9b84e76ec2f5e8b3b84850af10fa0ee73352bba5554d3ef571f4a +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-dialup/kpnadsl4linux/files/kpnadsl4linux-1.11-Makefile.patch b/net-dialup/kpnadsl4linux/files/kpnadsl4linux-1.11-Makefile.patch new file mode 100644 index 000000000000..f7d20bf348a6 --- /dev/null +++ b/net-dialup/kpnadsl4linux/files/kpnadsl4linux-1.11-Makefile.patch @@ -0,0 +1,25 @@ +--- Makefile.orig 2013-04-14 16:50:26.676698258 +0400 ++++ Makefile 2013-04-14 16:51:14.107695809 +0400 +@@ -1,18 +1,18 @@ + # Makefile for ADSL4Linux 1.11 Gentoo Edition + + all: adsl + + adsl: adsl.o adslstatus.o adslstatus.h adsl.h +- gcc adsl.o adslstatus.o -o adsl ++ $(CC) $(LDFLAGS) adsl.o adslstatus.o -o adsl + + adsl.o: adsl.c adsl.h +- gcc -c adsl.c ++ $(CC) $(CFLAGS) -c adsl.c + + adslstatus: adslstatus.o adslstatus.h adsl.h +- gcc adslstatus.o -o adslstatus ++ $(CC) $(LDFLAGS) adslstatus.o -o adslstatus + + adslstatus.o: adslstatus.c adslstatus.h adsl.h +- gcc -c adslstatus.c ++ $(CC) $(CFLAGS) -c adslstatus.c + + clean: + rm adsl *.o diff --git a/net-dialup/kpnadsl4linux/files/kpnadsl4linux-config b/net-dialup/kpnadsl4linux/files/kpnadsl4linux-config new file mode 100644 index 000000000000..439528e14f4a --- /dev/null +++ b/net-dialup/kpnadsl4linux/files/kpnadsl4linux-config @@ -0,0 +1,100 @@ +#/bin/bash + +# This script is to be distributed on the Gentoo liveCD's under the terms or the GNU General Public License version 2 or later +# Copyright 2002 Sam Besselink (sambesselink@planet.nl) +# This script does some configuration needed before it's possible to make a succesful pptp tunnel. + +a4lvarconfig() { + # Get username, password and 'phonenumber' (pc1/pc2/pc3/...) + echo "What's your username? (ie. myname@subscription-form)"; read USERNAME; + echo "" + echo "What's your password?"; read PAWD; + echo "" + echo "If you have a subscription with multiple ip addresses, please specify your 'pc-number'? (ie. pc3) Press"\ + "ENTER if you have no idea what I'm talking about."; read PCNUMBER; + echo "" + if [ -z ${PCNUMBER} ]; then PCNUMBER=pc1; else :; fi; + echo "Are these, in order, your username, password and pc-number?"; + echo "username: ${USERNAME}"; + echo "password: ${PAWD}"; + echo "pc-number: ${PCNUMBER}"; + # Ask whether settings are correct and act accordingly. + CHECK="Yes No"; + select CHCKCHCK in ${CHECK}; do + if [ ${CHCKCHCK} = "Yes" ]; + # Get username etc. again if last try was incorrect. + then adslconfigins; + # Else go to the next step. + else echo ""; echo ""; echo ""; a4lvarconfig; + fi + done +} + +adslconfigins() { + if [ -d /etc/ppp/peers ]; then :; else mkdir /etc/ppp/peers; fi + cd /etc/ppp/peers + + # Save your settings to a file. + echo "idle 0" > .adsl + echo "noauth" >> .adsl + echo "user ${USERNAME}" >> .adsl + echo "usepeerdns" >> .adsl + echo "defaultroute" >> .adsl + echo "linkname mxstream" >> .adsl + echo 'pty "/usr/sbin/pptp 10.0.0.138 --nolaunchpppd --phone '"${PCNUMBER}"'"' >> .adsl + if [ -e adsl ]; then mv .adsl ._cfg0000_adsl; else mv .adsl adsl; fi + chmod 644 adsl + pap-secretsins; +} + +pap-secretsins() { + if [ -d /etc/ppp/peers ]; then :; else mkdir /etc/ppp/peers; fi + cd /etc/ppp + # Save the 'secret' (password) in the secrets file. + echo "# Secrets for authentication using PAP" > .pap-secrets + echo "# client server secret ip-addresses" >> .pap-secrets + echo "${USERNAME} * "'"'"${PAWD}"'"'" *" >> .pap-secrets + if [ -e pap-secrets ]; then mv .pap-secrets ._cfg0000_pap-secrets; else mv .pap-secrets pap-secrets; fi + loggingadsl; +} + +loggingadsl() { + # Crontab Logging + echo "Trying to install logging..." + local TESTER="root test -x /usr/sbin/adsl && /usr/sbin/adsl update" + local STRING1="/5 * * * * ${TESTER}" + # Check if /etc/crontab exists + if [ -e /etc/crontab ]; then \ + # If cron works install, else don't. + if [ `grep -c "/5 \* \* \* \* ${TESTER}" /etc/crontab` != "0" ]; then echo "Not adding string for crontab"; + else echo -e '\n# 5-minute ADSL log update' >> /etc/crontab; + echo -e "${STRING1}" >> /etc/crontab; + echo "Added to crontab: a 5 minute log update"; + fi; + else echo "/etc/crontab doesn't exist!" + fi; + + # ip-down.local logging + local TEST="" + local TEST2="^/usr/sbin/adsl stoplog$" + local STRING2="/usr/sbin/adsl stoplog" + if [ -e /etc/ppp/ip-down.local ]; then :; else touch /etc/ppp/ip-down.local; fi + local test=`grep -c "${TEST2}" /etc/ppp/ip-down.local` + # If there already is such a string, don't do anything, else add it. + if [ "${TEST}" != "0" ]; then echo "Not adding string for log in /etc/ppp/ip-down.local"; + else echo -e '\n# ADSL log save' >> /etc/ppp/ip-down.local; + echo -e "${STRING2}" >> /etc/ppp/ip-down.local; + echo "Added to ip-down.local: log save"; + fi; + + echo "Configuration is done!" + echo "If you want you can check/tweak your settings by editting /etc/ppp/pap-secrets" + echo "and /etc/ppp/peers/adsl. Enjoy!" + echo -e "\e[33;01m* IMPORTANT:\e[00;00m files in /etc _MAY_ need updating."; + echo -e "\e[33;01m*\e[00;00m Type \e[32;01memerge --help config \e[00;00mto learn how to update config files."; + + exit; +} + +# Start the configuring +a4lvarconfig; diff --git a/net-dialup/kpnadsl4linux/kpnadsl4linux-1.11.ebuild b/net-dialup/kpnadsl4linux/kpnadsl4linux-1.11.ebuild new file mode 100644 index 000000000000..658aea979dcf --- /dev/null +++ b/net-dialup/kpnadsl4linux/kpnadsl4linux-1.11.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="ADSL4Linux, a PPTP start/stop/etc. program especially for Dutch users" +HOMEPAGE="http://www.adsl4linux.nl/" +SRC_URI="http://home.planet.nl/~mcdon001/${P}.tar.gz + http://www.adsl4linux.nl/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" + +RDEPEND=">=net-dialup/pptpclient-1.7.0 + >=net-dialup/ppp-2.4.2" + +src_prepare() { + # Respect CC, CFLAGS and LDFLAGS. Bug #336109 + epatch "${FILESDIR}/${P}-Makefile.patch" + tc-export CC + + # Fix a typo + sed -i -e 's:* at first:/\0:' adslstatus.c || die 'sed on adslstatuc.c failed' + + epatch_user +} + +src_install() { + dosbin adsl + dodoc Changelog modemREADME README + newinitd init.d.adsl adsl + dosbin "${FILESDIR}/${PN}-config" +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "Do _NOT_ forget to run the following if this is your _FIRST_ install:" + elog " kpnadsl4linux-config" + elog " etc-update" + elog "To start ${P} at boot type:" + elog " rc-update add adsl default" + fi +} diff --git a/net-dialup/kpnadsl4linux/metadata.xml b/net-dialup/kpnadsl4linux/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-dialup/kpnadsl4linux/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> |