upg ppp
This commit is contained in:
parent
3cf95649aa
commit
f511026b4f
5 changed files with 52 additions and 72 deletions
78
ppp/PKGBUILD
78
ppp/PKGBUILD
|
@ -6,38 +6,44 @@
|
|||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||
|
||||
pkgname=ppp
|
||||
pkgver=2.5.0
|
||||
pkgrel=03
|
||||
pkgver=2.5.1
|
||||
pkgrel=01
|
||||
pkgdesc="A daemon which implements the Point-to-Point Protocol for dial-up networking - w/o systemd & ipv6"
|
||||
url="https://www.samba.org/ppp/"
|
||||
makedepends=(git)
|
||||
depends=('glibc' 'libpcap' 'libxcrypt' 'openssl')
|
||||
backup=(etc/ppp/{chap-secrets,ip-down,ip-down.d/00-dns.sh,ip-up,ip-up.d/00-dns.sh,ipv6-down,ipv6-up,ipv6-up.d/00-iface-config.sh,options,pap-secrets})
|
||||
source=(https://download.samba.org/pub/ppp/ppp-$pkgver.tar.gz{,.asc}
|
||||
ppp-revert-var-lock.patch::https://github.com/ppp-project/ppp/commit/99cbf5e269994482edaf64624be8b1c806f9587c.patch
|
||||
ppp-utils-mkdir.patch::https://github.com/ppp-project/ppp/commit/b0e7307b3569a5dad0f2606d2736cc8317851598.patch
|
||||
ppp-create-rundir.patch::https://github.com/ppp-project/ppp/commit/3a4fec968174fd6f387d5ec872a56343f256f645.patch
|
||||
ppp-device-name-too-long.patch::https://github.com/ppp-project/ppp/commit/9d6d326b2530cffb1414e4c401675117c42d43ce.patch
|
||||
options
|
||||
ip-up
|
||||
ip-down
|
||||
#source=(https://download.samba.org/pub/ppp/ppp-$pkgver.tar.gz{,.asc}
|
||||
# ppp-revert-var-lock.patch::https://github.com/ppp-project/ppp/commit/99cbf5e269994482edaf64624be8b1c806f9587c.patch
|
||||
# ppp-utils-mkdir.patch::https://github.com/ppp-project/ppp/commit/b0e7307b3569a5dad0f2606d2736cc8317851598.patch
|
||||
# ppp-create-rundir.patch::https://github.com/ppp-project/ppp/commit/3a4fec968174fd6f387d5ec872a56343f256f645.patch
|
||||
# ppp-device-name-too-long.patch::https://github.com/ppp-project/ppp/commit/9d6d326b2530cffb1414e4c401675117c42d43ce.patch
|
||||
# options
|
||||
# ip-up
|
||||
# ip-down
|
||||
# ip-up.d.dns.sh
|
||||
# ip-down.d.dns.sh
|
||||
# LICENSE)
|
||||
source=(git+https://github.com/ppp-project/ppp.git?signed#tag=ppp-$pkgver
|
||||
options
|
||||
ip-up
|
||||
ip-down
|
||||
ip-up.d.dns.sh
|
||||
ip-down.d.dns.sh
|
||||
LICENSE)
|
||||
# ipv6-up
|
||||
# ipv6-down
|
||||
# ipv6-up.d.iface-config.sh
|
||||
# ppp.systemd
|
||||
LICENSE)
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
patch -Np1 -i ../ppp-revert-var-lock.patch
|
||||
patch -Np1 -i ../ppp-utils-mkdir.patch
|
||||
patch -Np1 -i ../ppp-create-rundir.patch
|
||||
patch -Np1 -i ../ppp-device-name-too-long.patch
|
||||
cd $pkgname
|
||||
autoreconf -i
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
cd $pkgname
|
||||
|
||||
# CFLAGS="$CPPFLAGS $CFLAGS" LDFLAGS="$LDFLAGS" ./configure --prefix=/usr
|
||||
# make
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
|
@ -47,12 +53,11 @@ build() {
|
|||
--disable-ipv6cp \
|
||||
--enable-cbcp \
|
||||
--enable-multilink
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
cd $pkgname
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -D -m644 ../options "$pkgdir"/etc/ppp/options
|
||||
|
@ -72,8 +77,8 @@ package() {
|
|||
install -D -m755 scripts/poff "$pkgdir"/usr/bin/poff
|
||||
install -D -m755 scripts/plog "$pkgdir"/usr/bin/plog
|
||||
install -D -m644 scripts/pon.1 "$pkgdir"/usr/share/man/man1/pon.1
|
||||
install -D -m600 etc.ppp/pap-secrets "$pkgdir"/etc/ppp/pap-secrets
|
||||
install -D -m600 etc.ppp/chap-secrets "$pkgdir"/etc/ppp/chap-secrets
|
||||
# install -D -m600 etc.ppp/pap-secrets "$pkgdir"/etc/ppp/pap-secrets
|
||||
# install -D -m600 etc.ppp/chap-secrets "$pkgdir"/etc/ppp/chap-secrets
|
||||
install -d -m755 "$pkgdir"/etc/ppp/peers
|
||||
chmod 0755 "$pkgdir"/usr/lib/pppd/$pkgver/*.so
|
||||
|
||||
|
@ -82,21 +87,6 @@ package() {
|
|||
install -Dm644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
||||
|
||||
backup=(etc/ppp/{chap-secrets,pap-secrets,options,ip-up,ip-down,ip-down.d/00-dns.sh,ip-up.d/00-dns.sh,ipv6-up.d/00-iface-config.sh})
|
||||
# ipv6-up
|
||||
# ipv6-down
|
||||
# ipv6-up.d.iface-config.sh
|
||||
# # enable ipv6 support
|
||||
# install -D -m755 ../ipv6-up "$pkgdir"/etc/ppp/ipv6-up
|
||||
# install -D -m755 ../ipv6-down "$pkgdir"/etc/ppp/ipv6-down
|
||||
# install -d -m755 "$pkgdir"/etc/ppp/ipv6-up.d
|
||||
# install -d -m755 "$pkgdir"/etc/ppp/ipv6-down.d
|
||||
# install -m755 ../ipv6-up.d.iface-config.sh "$pkgdir"/etc/ppp/ipv6-up.d/00-iface-config.sh /
|
||||
# ppp.systemd
|
||||
# install -D -m644 "$srcdir"/ppp.systemd "$pkgdir"/usr/lib/systemd/system/ppp@.service
|
||||
# install -D -m644 "$srcdir"/ppp.systemd "$pkgdir"/usr/lib/systemd/system/ppp@.service
|
||||
|
||||
#---- arch license gpg-key & sha256sums ----
|
||||
|
||||
arch=(x86_64)
|
||||
|
@ -106,12 +96,7 @@ license=('GPL' 'BSD')
|
|||
validpgpkeys=('631E179E370CD727A7F2A33A9E4295D605F66CE9' # Paul Mackerras (Signing key) <paulus@samba.org>
|
||||
'DE8E01561D8276A4DBFAEFCC040F1D49EC9DBB8C') # Paul Mackerras <paulus@ozlabs.org>
|
||||
|
||||
sha256sums=(5cae0e8075f8a1755f16ca290eb44e6b3545d3f292af4da65ecffe897de636ff # ppp-2.5.0.tar.gz
|
||||
a8f99019f6d3c7ded5069dbd61283953eae06e8321e3acbc9fe341722766865e # ppp-2.5.0.tar.gz.asc
|
||||
25726f3937c3ef13edf0547f285238bb2f1516732f02424add8c89930f8e32d6 # ppp-revert-var-lock.patch
|
||||
be925b10fca2f84a46ad369c15e6faeac5d281e1897e9c80a9e7577ef887389e # ppp-utils-mkdir.patch
|
||||
af01d3721a61079e7afb3aa262508721e4c759187f4643f01cb547682d900f61 # ppp-create-rundir.patch
|
||||
9c9f0685f155b6b74c262c4a8712e07f5c13285f4935d3a4413a79c16d66ca4c # ppp-device-name-too-long.patch
|
||||
sha256sums=(de88ce5a378b7a00c193c14466da675b879aad4eda762b7a701ae86f98c47e5c # ppp
|
||||
c74f0e09724b90d9fbdbb921b5d6f27812d650945d6d8015f4f06089f5562d9c # options
|
||||
ddef42b2cc5d49e81556dc9dbacf5ee3bf8dc32704f3670c2233eed42c4a4efd # ip-up
|
||||
658630ba4c5cb583df80af6d4df81df8ae20798f63cc4b9cec8d4dad13a6a897 # ip-down
|
||||
|
@ -119,6 +104,5 @@ sha256sums=(5cae0e8075f8a1755f16ca290eb44e6b3545d3f292af4da65ecffe897de636ff #
|
|||
17b486fa69a71dafcbe543dc4f2b8cb9ed31e675aabc5f6c98ef94dbc1561c85 # ip-down.d.dns.sh
|
||||
96fd35104e3d0ec472517afecead88419913ae73ae0189476d5dad9029c2be42) # LICENSE
|
||||
|
||||
|
||||
## c202f7c206cb1de81497b0f71838df625e7b7cb7378e7d53330ab202203d4356 ppp-2.5.0-03-x86_64.pkg.tar.lz
|
||||
## 22443b9f3dc08e2e978b75668da7a5d6c8bac2836eae8352f352747ba1ebcbc6 ppp-2.5.1-01-x86_64.pkg.tar.lz
|
||||
|
||||
|
|
|
@ -2,19 +2,16 @@
|
|||
# Contributor: Thomas Baechler <thomas@archlinux.org>
|
||||
|
||||
pkgname=ppp
|
||||
pkgver=2.5.0
|
||||
pkgrel=3
|
||||
pkgver=2.5.1
|
||||
pkgrel=1
|
||||
pkgdesc="A daemon which implements the Point-to-Point Protocol for dial-up networking"
|
||||
arch=(x86_64)
|
||||
url="https://www.samba.org/ppp/"
|
||||
license=('GPL' 'BSD')
|
||||
depends=('glibc' 'libpcap' 'libxcrypt' 'openssl')
|
||||
makedepends=('git')
|
||||
backup=(etc/ppp/{chap-secrets,ip-down,ip-down.d/00-dns.sh,ip-up,ip-up.d/00-dns.sh,ipv6-down,ipv6-up,ipv6-up.d/00-iface-config.sh,options,pap-secrets})
|
||||
source=(https://download.samba.org/pub/ppp/ppp-$pkgver.tar.gz{,.asc}
|
||||
ppp-revert-var-lock.patch::https://github.com/ppp-project/ppp/commit/99cbf5e269994482edaf64624be8b1c806f9587c.patch
|
||||
ppp-utils-mkdir.patch::https://github.com/ppp-project/ppp/commit/b0e7307b3569a5dad0f2606d2736cc8317851598.patch
|
||||
ppp-create-rundir.patch::https://github.com/ppp-project/ppp/commit/3a4fec968174fd6f387d5ec872a56343f256f645.patch
|
||||
ppp-device-name-too-long.patch::https://github.com/ppp-project/ppp/commit/9d6d326b2530cffb1414e4c401675117c42d43ce.patch
|
||||
source=(git+https://github.com/ppp-project/ppp.git?signed#tag=ppp-$pkgver
|
||||
options
|
||||
ip-up
|
||||
ip-down
|
||||
|
@ -25,12 +22,7 @@ source=(https://download.samba.org/pub/ppp/ppp-$pkgver.tar.gz{,.asc}
|
|||
ipv6-up.d.iface-config.sh
|
||||
ppp.systemd
|
||||
LICENSE)
|
||||
sha512sums=('094368ea2aa6c6e8dfba4443509857a7c1c7ff839bb6d6657743802477208c01e87db31593cef0932d3725c640e9c103179da6b742825034cda82bd31ddcc2ed'
|
||||
'SKIP'
|
||||
'eaf83b5d1204032f95dce12383a45ddc8050b4f85ba45bcc77f332fcbf8b73bf5f6fcf06f97e0606d37610249a013da8b36109f42a4901a477741970711ce73b'
|
||||
'444eb247f1d3d8a83a8180b0593f2b79005fbcddfe38d33845d76324f8aa584e17fce36906b9a03b9be9092b9afbe5ebce3365d64887c08b6b4e19069a70d1fa'
|
||||
'1bff91daaa61d4e3dcce82095be35f63c7025f22b956bf8b9ee48307a2ca437b61b55fd9f0172c514f3f6bee16aa9c615e6a11aeca663032d6a6d6f9166d4341'
|
||||
'201b0a5006d62c40952ac662e3d6990f53dae379d290f27d804c71f84cb3f0ac346a5da783fc90461b5a853cad27e78e3f61896794e676c740541d780cac6ce8'
|
||||
sha512sums=('2303287dfb6a887f0c61b2a5db2943d2abb74b5116bb6ab123d7d58af4dc2fc7d1dd4dd23fa3fd2443617637bf293ed560142f4cd81ab29c79952618960050ef'
|
||||
'4324a9abe79b20735b87de2158bb73b6449415a4760f06a06b648dfb53517f8d9907b094a88d1b492b24c8720cfd9b17d491fbe236fbd51ba9042af60483b231'
|
||||
'bdaaac792dd448ff31da6da2749d8c2f9c4e0311b1d4639de7c68038fcaa333cc28e25f5a6308de0ecb24b60b2e7284a811482df990da5f54d5581a746964f3c'
|
||||
'92f3a5e383f2c888938e891ba831042e7f8c026b0ddf5ce8c3523d06ac32fa81742e638a4c665975cbc79868b98806d92574ee2ee8e034e33b065a90ee3ab28b'
|
||||
|
@ -45,24 +37,19 @@ validpgpkeys=('631E179E370CD727A7F2A33A9E4295D605F66CE9' # Paul Mackerras (Sign
|
|||
'DE8E01561D8276A4DBFAEFCC040F1D49EC9DBB8C') # Paul Mackerras <paulus@ozlabs.org>
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
patch -Np1 -i ../ppp-revert-var-lock.patch
|
||||
patch -Np1 -i ../ppp-utils-mkdir.patch
|
||||
patch -Np1 -i ../ppp-create-rundir.patch
|
||||
patch -Np1 -i ../ppp-device-name-too-long.patch
|
||||
cd ppp
|
||||
autoreconf -i
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
cd ppp
|
||||
./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --runstatedir=/run \
|
||||
--enable-systemd --enable-cbcp --enable-multilink
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
cd ppp
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -D -m644 ../options "$pkgdir"/etc/ppp/options
|
||||
|
@ -82,8 +69,6 @@ package() {
|
|||
install -D -m755 scripts/poff "$pkgdir"/usr/bin/poff
|
||||
install -D -m755 scripts/plog "$pkgdir"/usr/bin/plog
|
||||
install -D -m644 scripts/pon.1 "$pkgdir"/usr/share/man/man1/pon.1
|
||||
install -D -m600 etc.ppp/pap-secrets "$pkgdir"/etc/ppp/pap-secrets
|
||||
install -D -m600 etc.ppp/chap-secrets "$pkgdir"/etc/ppp/chap-secrets
|
||||
install -d -m755 "$pkgdir"/etc/ppp/peers
|
||||
chmod 0755 "$pkgdir"/usr/lib/pppd/$pkgver/*.so
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
rm -rf {*.tar.gz*,src,pkg}
|
||||
rm -rf {ppp,src,pkg}
|
||||
|
|
1
ppp/deps
1
ppp/deps
|
@ -1,3 +1,4 @@
|
|||
git
|
||||
automake
|
||||
autoconf
|
||||
|
||||
|
|
10
ppp/ppp.systemd
Normal file
10
ppp/ppp.systemd
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=PPP link to %I
|
||||
Before=network.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/usr/sbin/pppd call %I nodetach nolog up_sdnotify
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue