diff options
author | @RubenKelevra | 2020-05-12 03:46:56 +0200 |
---|---|---|
committer | @RubenKelevra | 2020-05-12 03:47:18 +0200 |
commit | c554f19542e8a2478179c0e26077d9ecaca5b719 (patch) | |
tree | 50d0882e05ebb433dde409ea9ed55246076945f4 | |
parent | d2cbcdeecaab2974ebb56ef7a023ee221db17528 (diff) | |
download | aur-c554f19542e8a2478179c0e26077d9ecaca5b719.tar.gz |
use upstream service files
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 24 | ||||
-rw-r--r-- | ipfs.service | 9 | ||||
-rw-r--r-- | ipfs@.service | 10 |
4 files changed, 11 insertions, 38 deletions
@@ -1,6 +1,6 @@ pkgbase = go-ipfs-git pkgdesc = A peer-to-peer hypermedia distribution protocol - pkgver = 0.5.0.r110.gb786c32b6 + pkgver = 0.5.1.r89.gb786c32b6 pkgrel = 2 url = https://github.com/ipfs/go-ipfs arch = i686 @@ -15,11 +15,7 @@ pkgbase = go-ipfs-git conflicts = go-ipfs conflicts = go-pie source = git+https://github.com/ipfs/go-ipfs.git - source = ipfs.service - source = ipfs@.service b2sums = SKIP - b2sums = d3463151a9f209784a6bf8fb91b0001d19c1c91732430d5d3744cbb861e3ca80fd18fe481ef3ef91061a6f59931dbcf8d063f50a319ab1bb2a2c1ba0ac9175f1 - b2sums = 364d9043d1df256af620b52a967c45d8324f0a5b05879466b95f03f3871531678b521140e3a4fe746f9f9b1d171050ab08320628860967176344c968ba7ddae7 pkgname = go-ipfs-git @@ -6,7 +6,7 @@ _pkgname=go-ipfs pkgname=$_pkgname-git -pkgver=0.5.0.r110.gb786c32b6 +pkgver=0.5.1.r89.gb786c32b6 pkgrel=2 pkgdesc='A peer-to-peer hypermedia distribution protocol' url="https://github.com/ipfs/$_pkgname" @@ -17,13 +17,9 @@ optdepends=('fuse2: for mounting/advanced use' 'bash-completion: bash completion support') provides=("$_pkgname") conflicts=("$_pkgname" go-pie) -source=("git+${url}.git" - "ipfs.service" - "ipfs@.service") +source=("git+${url}.git") -b2sums=('SKIP' - 'd3463151a9f209784a6bf8fb91b0001d19c1c91732430d5d3744cbb861e3ca80fd18fe481ef3ef91061a6f59931dbcf8d063f50a319ab1bb2a2c1ba0ac9175f1' - '364d9043d1df256af620b52a967c45d8324f0a5b05879466b95f03f3871531678b521140e3a4fe746f9f9b1d171050ab08320628860967176344c968ba7ddae7') +b2sums=('SKIP') prepare() { cd "$srcdir/$_pkgname" @@ -59,14 +55,14 @@ build() { package() { cd "$srcdir/$_pkgname" + #avoid migrations on bootup (see #7269) + sed -i 's/--migrate//g' misc/systemd/ipfs.service + #increase timeouts (see #7283) + sed -i 's/MemorySwapMax=0/MemorySwapMax=0\n\nTimeoutStartSec=15min\nTimeoutStopSec=15min\nTimeoutAbortSec=15min/' misc/systemd/ipfs.service install -Dm 755 cmd/ipfs/ipfs "$pkgdir/usr/bin/ipfs" - install -Dm 644 misc/systemd/ipfs-api.socket "$pkgdir/usr/lib/systemd/user/ipfs-api.socket" - install -Dm 644 misc/systemd/ipfs-gateway.socket "$pkgdir/usr/lib/systemd/user/ipfs-gateway.socket" - # PR is open to bring some changes upstream - # install -Dm 644 misc/systemd/ipfs.service "$pkgdir/usr/lib/systemd/user/ipfs.service" - # install -Dm 644 misc/systemd/ipfs@.service "$pkgdir/usr/lib/systemd/user/ipfs@.service" - install -Dm 644 "$srcdir"/ipfs.service "$pkgdir/usr/lib/systemd/user/ipfs.service" - install -Dm 644 "$srcdir"/ipfs@.service "$pkgdir/usr/lib/systemd/system/ipfs@.service" + install -Dm 644 misc/systemd/ipfs-api.socket "$pkgdir/usr/lib/systemd/system/ipfs-api.socket" + install -Dm 644 misc/systemd/ipfs-gateway.socket "$pkgdir/usr/lib/systemd/system/ipfs-gateway.socket" + install -Dm 644 misc/systemd/ipfs.service "$pkgdir/usr/lib/systemd/system/ipfs.service" install -Dm 644 misc/completion/ipfs-completion.bash "$pkgdir/usr/share/bash-completion/completions/ipfs" install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/MIT" LICENSE-MIT install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/APACHE" LICENSE-APACHE diff --git a/ipfs.service b/ipfs.service deleted file mode 100644 index 257f2016c15f..000000000000 --- a/ipfs.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=InterPlanetary File System (IPFS) daemon - -[Service] -ExecStart=/usr/bin/ipfs daemon -Restart=on-failure - -[Install] -WantedBy=default.target diff --git a/ipfs@.service b/ipfs@.service deleted file mode 100644 index 853f70bfb5a4..000000000000 --- a/ipfs@.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=InterPlanetary File System (IPFS) daemon - -[Service] -User=%i -ExecStart=/usr/bin/ipfs daemon -Restart=on-failure - -[Install] -WantedBy=default.target |