summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Arenales2016-01-06 15:20:04 -0200
committerFelipe Arenales2016-01-06 15:20:04 -0200
commit181631d35639d0b003a6a4118bde218ba011a499 (patch)
tree3bdfae96767190a89870b1fc64e934bbb9251f71
downloadaur-181631d35639d0b003a6a4118bde218ba011a499.tar.gz
First commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD19
-rw-r--r--libnss-resolver.install9
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c5fcda02fad
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Wed Jan 6 17:18:59 UTC 2016
+pkgbase = libnss-resolver
+ pkgdesc = A Linux extension that adds support to the /etc/resolver/[suffix].
+ pkgver = 0.3.0
+ pkgrel = 1
+ url = https://github.com/azukiapp/libnss-resolver
+ install = libnss-resolver.install
+ arch = x86_64
+ license = Apache
+ makedepends = clang
+ makedepends = wget
+ makedepends = scons
+ depends = glibc
+ conflicts = libnss-resolver-git
+ source = https://github.com/azukiapp/libnss-resolver/archive/v0.3.0.tar.gz
+ md5sums = SKIP
+
+pkgname = libnss-resolver
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..93c5b5bee33
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Azuki <support@azukiapp.com>
+pkgname='libnss-resolver'
+pkgver=0.3.0
+pkgrel=1
+pkgdesc=" A Linux extension that adds support to the /etc/resolver/[suffix]."
+arch=('x86_64')
+url="https://github.com/azukiapp/libnss-resolver"
+license=('Apache')
+depends=('glibc')
+makedepends=('clang' 'wget' 'scons' )
+conflicts=(${pkgname}-git)
+source=("https://github.com/azukiapp/libnss-resolver/archive/v0.3.0.tar.gz")
+md5sums=('SKIP')
+install=${pkgname}.install
+
+package() {
+ cd "$pkgname"
+ scons prefix="$pkgdir/usr/lib" local-install
+}
diff --git a/libnss-resolver.install b/libnss-resolver.install
new file mode 100644
index 00000000000..527ce85173c
--- /dev/null
+++ b/libnss-resolver.install
@@ -0,0 +1,9 @@
+post_install() {
+ sed -i -re 's/^(hosts: .*files)(.*)$/\1 resolver\2/' /etc/nsswitch.conf
+ mkdir -p /etc/resolver
+}
+
+post_remove() {
+ rm -Rf /etc/resolver
+ sed -i -re 's/^(hosts: .*files)\ resolver(.*)$/\1\2/' /etc/nsswitch.conf
+}