summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Benedict2017-07-03 13:33:39 -0600
committerChris Benedict2017-07-03 13:55:54 -0600
commit7a53c01cc0e02d1ac51084d97d98e24268262f54 (patch)
tree13434ec52f2262e061d5548d4d566fadf381b69f
downloadaur-7a53c01cc0e02d1ac51084d97d98e24268262f54.tar.gz
Initial import into AUR
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD44
-rw-r--r--denariusd.service19
-rw-r--r--util-patch.diff12
4 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..910e77dfd47
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = denarius-git
+ pkgdesc = Denarius [DNR] is an anonymous, untraceable, energy efficient, Proof-of-Work (New Tribus Algorithm) and Proof-of-Stake cryptocurrency.
+ pkgver = 20170627.b3cd0cf
+ pkgrel = 1
+ url = https://denarius.io
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = boost
+ depends = miniupnpc
+ depends = libevent
+ depends = openssl-1.0
+ depends = boost-libs
+ provides = denarius
+ conflicts = denarius
+ source = git+https://github.com/carsenk/denarius.git#commit=b3cd0cf
+ source = util-patch.diff
+ source = denariusd.service
+ sha512sums = SKIP
+ sha512sums = c7a121b537bf612cf7e99b5bae4f8fdab1ef86c22a632e2068ddd8956d78e09e3271c80409bc62bfce9f1601023a4d91387d80094b391ebf4a10198b2e8a2d43
+ sha512sums = 0bbdf08df9f7cd15cebd01df55415ebe9ee35034e81e3cf18a2f9754c9709d1efd347bfa0a5f0badde73d4d79df43c642ee018af025ab9069e804ab8007043e2
+
+pkgname = denarius-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5537df88d06
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Chris Benedict <chrisbdaemon@gmail.com>
+
+pkgname='denarius-git'
+pkgver=1.0.0.0.r42.gb3cd0cf
+pkgrel=1
+pkgdesc="Denarius (DNR) is an anonymous, untraceable, energy efficient, Proof-of-Work, and Proof-of-Stake cryptocurrency."
+arch=('x86_64')
+url="https://denarius.io"
+license=('MIT')
+depends=('miniupnpc' 'libevent' 'openssl-1.0' 'boost-libs')
+makedepends=('git' 'boost')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=(
+ 'git+https://github.com/carsenk/denarius.git'
+ 'util-patch.diff'
+ 'denariusd.service'
+)
+sha512sums=('SKIP'
+ 'c7a121b537bf612cf7e99b5bae4f8fdab1ef86c22a632e2068ddd8956d78e09e3271c80409bc62bfce9f1601023a4d91387d80094b391ebf4a10198b2e8a2d43'
+ '0bbdf08df9f7cd15cebd01df55415ebe9ee35034e81e3cf18a2f9754c9709d1efd347bfa0a5f0badde73d4d79df43c642ee018af025ab9069e804ab8007043e2')
+
+pkgver() {
+ cd "${pkgname%-git}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "${srcdir}/${pkgname%-git}"
+
+ # put config files in ~/.config/denarius instead of ~/.denarius
+ patch -uN src/util.cpp ../util-patch.diff
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}/src"
+ OPENSSL_LIB_PATH=/usr/lib/openssl-1.0 OPENSSL_INCLUDE_PATH=/usr/include/openssl-1.0 make -f makefile.unix
+}
+
+package() {
+ install -Dm755 "$srcdir/${pkgname%-git}/src/denariusd" "$pkgdir/usr/bin/denariusd"
+ install -Dm644 "$srcdir/denariusd.service" "$pkgdir/usr/lib/systemd/system/denariusd.service"
+ install -Dm644 "$srcdir/${pkgname%-git}/COPYING" "$pkgdir/usr/share/licenses/denarius-git/LICENSE"
+}
diff --git a/denariusd.service b/denariusd.service
new file mode 100644
index 00000000000..8afb73d6004
--- /dev/null
+++ b/denariusd.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Denarius: Ancient money for a new world
+Wants=network.target
+After=network.target
+
+[Service]
+ProtectHome=true
+ProtectSystem=true
+SyslogIdentifier=denariusd
+ExecStartPre=/bin/sh -ec "if ! test -s /var/lib/denarius/denarius.conf; \
+ then umask 0077; \
+ /usr/bin/mkdir -p /var/lib/denarius ; \
+ /usr/bin/denariusd -port=0 -conf=/dev/null 2>&1 | grep -A 1 rpcuser > /var/lib/denarius/denarius.conf; \
+ echo 'WARNING: A new /var/lib/denarius/denarius.conf file has been generated.'; \
+ fi"
+ExecStart=/usr/bin/denariusd -datadir=/var/lib/denarius
+
+[Install]
+WantedBy=multi-user.target
diff --git a/util-patch.diff b/util-patch.diff
new file mode 100644
index 00000000000..de96d41d622
--- /dev/null
+++ b/util-patch.diff
@@ -0,0 +1,12 @@
+--- util.cpp.old 2017-07-03 00:46:57.899433567 -0600
++++ util.cpp 2017-07-03 00:46:48.212744966 -0600
+@@ -1010,7 +1010,8 @@
+ return pathRet / "Denarius";
+ #else
+ // Unix
+- return pathRet / ".denarius";
++ fs::create_directory(pathRet / ".config");
++ return pathRet / ".config/denarius";
+ #endif
+ #endif
+ }