From 2587acda28156f50149a15cad67d0c0bc1eb0bb4 Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Sun, 5 May 2013 23:07:06 +0200 Subject: Use pkg-config to obtain the systemd system unit directory This ensures the units are installed correctly if systemd is installed in an alternate location like /lib/systemd. Idem for the location of profile-based units. Based on a proposal by: Mike Gilbert --- contrib/PKGBUILD | 35 ----------------------------------- contrib/PKGBUILD.in | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 35 deletions(-) delete mode 100644 contrib/PKGBUILD create mode 100644 contrib/PKGBUILD.in (limited to 'contrib') diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD deleted file mode 100644 index 0190048..0000000 --- a/contrib/PKGBUILD +++ /dev/null @@ -1,35 +0,0 @@ -# Maintainer: Jouke Witteveen - -pkgname=netctl -pkgver=%pkgver% -pkgrel=1 -pkgdesc='Profile based systemd network management' -url='http://projects.archlinux.org/netctl.git/' -license=('GPL') -groups=('base') -depends=('coreutils' 'iproute2' 'openresolv') -#makedepends=('asciidoc') # The source tarball includes pre-built documentation. -optdepends=('dialog: for the menu based wifi assistant' - 'dhclient: for DHCP support (or dhcpcd)' - 'dhcpcd: for DHCP support (or dhclient)' - 'wpa_supplicant: for wireless networking support' - 'ifplugd: for automatic wired connections through netctl-ifplugd' - 'wpa_actiond: for automatic wireless connections through netctl-auto' - 'ifenslave: for bond connections' - 'bridge-utils: for bridge connections' - 'ppp: for pppoe connections' - ) -source=(ftp://ftp.archlinux.org/other/packages/netctl/netctl-${pkgver}.tar.xz{,.sig}) -arch=('any') -md5sums=('%md5sum%' - '%md5sum.sig%') - -package() { - cd "$srcdir/netctl-${pkgver}" - make DESTDIR="$pkgdir" install - - # Shell Completion - install -D -m644 contrib/bash-completion "$pkgdir/usr/share/bash-completion/completions/netctl" - install -D -m644 contrib/zsh-completion "$pkgdir/usr/share/zsh/site-functions/_netctl" -} - diff --git a/contrib/PKGBUILD.in b/contrib/PKGBUILD.in new file mode 100644 index 0000000..3c7b9b0 --- /dev/null +++ b/contrib/PKGBUILD.in @@ -0,0 +1,36 @@ +# Maintainer: Jouke Witteveen + +pkgname=netctl +pkgver=@pkgver@ +pkgrel=1 +pkgdesc='Profile based systemd network management' +url='http://projects.archlinux.org/netctl.git/' +license=('GPL') +groups=('base') +depends=('coreutils' 'iproute2' 'openresolv') +# The source tarball includes pre-built (using asciidoc) documentation. +makedepends=('pkg-config') +optdepends=('dialog: for the menu based wifi assistant' + 'dhclient: for DHCP support (or dhcpcd)' + 'dhcpcd: for DHCP support (or dhclient)' + 'wpa_supplicant: for wireless networking support' + 'ifplugd: for automatic wired connections through netctl-ifplugd' + 'wpa_actiond: for automatic wireless connections through netctl-auto' + 'ifenslave: for bond connections' + 'bridge-utils: for bridge connections' + 'ppp: for pppoe connections' + ) +source=(ftp://ftp.archlinux.org/other/packages/netctl/netctl-${pkgver}.tar.xz{,.sig}) +arch=('any') +md5sums=('@md5sum@' + '@md5sum.sig@') + +package() { + cd "$srcdir/netctl-${pkgver}" + make DESTDIR="$pkgdir" install + + # Shell Completion + install -D -m644 contrib/bash-completion "$pkgdir/usr/share/bash-completion/completions/netctl" + install -D -m644 contrib/zsh-completion "$pkgdir/usr/share/zsh/site-functions/_netctl" +} + -- cgit v1.2.3-24-g4f1b