summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Webster2019-08-06 10:40:46 -0700
committerDonald Webster2019-08-06 10:40:46 -0700
commit154ec9fe80be080d7cf953c37a93732558104020 (patch)
tree58b00f00dd849d4cf5c5c948dfd9851b970191d4
parent67a1c38ae47500badc4b045a32d6584a3f8ff192 (diff)
downloadaur-154ec9fe80be080d7cf953c37a93732558104020.tar.gz
Put mbuffer.rc in /etc and protect it.
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD6
2 files changed, 7 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0289d42e974..173a2716964 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,6 +7,7 @@ pkgbase = mbuffer
arch = armv7l
license = GPL3
depends = openssl
+ backup = etc/mbuffer.rc
source = http://www.maier-komor.de/software/mbuffer/mbuffer-20190725.tgz
md5sums = ba73ff60b121f2feb5980df1bcbe9c72
diff --git a/PKGBUILD b/PKGBUILD
index f8dfa05ecda..6e89675554e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,6 +13,7 @@ arch=('x86_64' 'armv7l')
url="http://www.maier-komor.de/mbuffer.html"
license=('GPL3')
depends=('openssl')
+backup=('etc/mbuffer.rc')
source=("http://www.maier-komor.de/software/${pkgname}/${pkgname}-${pkgver}.tgz")
md5sums=('ba73ff60b121f2feb5980df1bcbe9c72')
@@ -26,4 +27,9 @@ build() {
package() {
cd "${srcdir}"/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
+
+ # Put the mbuffer.rc in /etc instead of /usr/etc
+ mkdir -p "${pkgdir}/etc"
+ mv "${pkgdir}/usr/etc/mbuffer.rc" "${pkgdir}/etc/"
+ rmdir "${pkgdir}/usr/etc"
}