[arch-commits] Commit in dropbear/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Thu Nov 9 19:26:35 UTC 2017


    Date: Thursday, November 9, 2017 @ 19:26:34
  Author: arodseth
Revision: 266047

upgpkg: dropbear 2017.75-4

Modified:
  dropbear/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-09 18:32:34 UTC (rev 266046)
+++ PKGBUILD	2017-11-09 19:26:34 UTC (rev 266047)
@@ -7,7 +7,8 @@
 # Contributor: Jeremy Cowgar <jeremy at cowgar.com>
 # Contributor: Simon Perry <aur at sanxion.net>
 
-pkgname=dropbear
+pkgbase=dropbear
+pkgname=(dropbear scp)
 pkgver=2017.75
 pkgrel=4
 pkgdesc='Lightweight SSH server'
@@ -17,6 +18,7 @@
 validpgpkeys=('F7347EF2EE2E07A267628CA944931494F29C6773')
 source=("https://matt.ucc.asn.au/$pkgname/releases/$pkgname-$pkgver.tar.bz2"{,.asc}
         "$pkgname.service")
+options=('emptydirs')
 sha256sums=('6cbc1dcb1c9709d226dff669e5604172a18cf5dbf9a201474d5618ae4465098c'
             'SKIP'
             '8890a35b6cb14745c1b22f80d3a8532de2a853c78a30eac72b954012e286504a')
@@ -33,13 +35,22 @@
   make PROGRAMS="dbclient dropbear dropbearconvert dropbearkey scp" SCPPROGRESS=1
 }
 
-package() {
-  make -C "$pkgname-$pkgver" install DESTDIR="$pkgdir"
+package_dropbear() {
   install -d "$pkgdir/etc/$pkgname"
+  make -C "$pkgbase-$pkgver" install DESTDIR="$pkgdir"
   install -Dm644 "$pkgname.service" \
     "$pkgdir/usr/lib/systemd/system/$pkgname.service"
-  install -Dm644 "$pkgname-$pkgver/LICENSE" \
+  install -Dm644 "$pkgbase-$pkgver/LICENSE" \
     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
+package_scp() {
+  pkgdesc='Lightweight SCP executable'
+  conflicts=('openssl')
+
+  make -C "$pkgbase-$pkgver" install PROGRAMS="scp" DESTDIR="$pkgdir"
+  install -Dm644 "$pkgbase-$pkgver/LICENSE" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
 # vim: ts=2 sw=2 et:


More information about the arch-commits mailing list