Last active
August 19, 2017 16:53
-
-
Save xhebox/182dfc894a527c8e2ea4d4020cceface to your computer and use it in GitHub Desktop.
deeponion pkg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=deeponion | |
pkgver=r6.d0d33df | |
pkgrel=1 | |
pkgdesc="DeepOnion (ONION) is a new PoW/PoS altcoin that is most secure. All the communications in DeepOnion network is done through the TOR network." | |
arch=('i686' 'x86_64') | |
url="https://github.com/deeponion/deeponion" | |
license=('MIT') | |
depends=('miniupnpc' 'libpng' 'boost' 'openssl-1.0' 'libevent' 'db') | |
source=("deeponion::git+https://github.com/deeponion/deeponion" | |
"upnp_2.patch") | |
md5sums=('SKIP' | |
'3c6aec679a55744df1fac1a8cb502505') | |
pkgver() { | |
cd "$srcdir/deeponion" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
prepare() { | |
cd "$srcdir/$pkgname" | |
patch -p1 -i "$srcdir/upnp_2.patch" | |
} | |
build() { | |
cd "$srcdir/$pkgname" | |
cd src/leveldb | |
chmod +x ./build_detect_platform | |
make libleveldb.a libmemenv.a | |
cd - | |
cd src/ | |
make -f makefile.unix \ | |
CFLAGS="-I/usr/include/openssl-1.0" \ | |
CXXFLAGS="-I/usr/include/openssl-1.0" \ | |
LDFLAGS="-L/usr/lib/openssl-1.0" | |
} | |
package() { | |
cd "$srcdir/$pkgname/src" | |
install -D -m755 DeepOniond "$pkgdir/usr/bin/DeepOniond" | |
cd .. | |
install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- deeponion/src/net.cpp 2017-08-19 23:55:38.023863100 +0800 | |
+++ deeponion/src/net.cpp 2017-08-19 23:55:38.023863100 +0800 | |
@@ -1005,7 +1005,7 @@ | |
#else | |
/* miniupnpc 1.6 */ | |
int error = 0; | |
- devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error); | |
+ devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 0, &error); | |
#endif | |
struct UPNPUrls urls; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment