aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2021-01-17 11:43:21 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2021-01-18 08:28:22 +0000
commit5588fb8675f5ff8cf14f2c34f9ca1e957c813df4 (patch)
treefdf35ec010f573fef7563422ae877425444d180d
parentaa66d9acf7d78232332b509b37e3352250fb411f (diff)
downloadaports-5588fb8675f5ff8cf14f2c34f9ca1e957c813df4.tar.gz
aports-5588fb8675f5ff8cf14f2c34f9ca1e957c813df4.tar.bz2
aports-5588fb8675f5ff8cf14f2c34f9ca1e957c813df4.tar.xz
community/nextcloud19: remove versioning from dir structure and apk provides
-rw-r--r--community/nextcloud19/APKBUILD39
1 files changed, 20 insertions, 19 deletions
diff --git a/community/nextcloud19/APKBUILD b/community/nextcloud19/APKBUILD
index d167dd3463..a021d2aae1 100644
--- a/community/nextcloud19/APKBUILD
+++ b/community/nextcloud19/APKBUILD
@@ -1,8 +1,9 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
pkgname=nextcloud19
+_pkgname=nextcloud
pkgver=19.0.7
-pkgrel=0
+pkgrel=1
pkgdesc="Transitional package to allow nextcloud upgrade from v18->v20 for Alpine 3.12->3.13"
url="http://nextcloud.com"
arch="noarch"
@@ -90,13 +91,13 @@ for _i in $_apps; do
done
# Directory for apps shipped with Nextcloud.
-_appsdir="usr/share/webapps/$pkgname/apps"
+_appsdir="usr/share/webapps/$_pkgname/apps"
package() {
- local basedir="var/lib/$pkgname"
+ local basedir="var/lib/$_pkgname"
local datadir="$basedir/data"
- local wwwdir="usr/share/webapps/$pkgname"
- local confdir="etc/$pkgname"
+ local wwwdir="usr/share/webapps/$_pkgname"
+ local confdir="etc/$_pkgname"
mkdir -p "$pkgdir"
cd "$pkgdir"
@@ -119,7 +120,7 @@ package() {
install -d -m 770 -o nextcloud -g www-data \
./$confdir ./$datadir ./$basedir/apps
install -d -m 775 -o nextcloud -g www-data \
- ./var/log/$pkgname
+ ./var/log/$_pkgname
# Create symlink from web root to site-apps, so web server can find
# assets w/o explicit configuration for this layout.
@@ -129,13 +130,13 @@ package() {
rm -r ./$wwwdir/config
ln -s /$confdir ./$wwwdir/config
- mkdir -p ./usr/share/doc/$pkgname
- mv ./$wwwdir/core/doc ./usr/share/doc/$pkgname/core
+ mkdir -p ./usr/share/doc/$_pkgname
+ mv ./$wwwdir/core/doc ./usr/share/doc/$_pkgname/core
install -m 660 -o nextcloud -g www-data \
"$srcdir"/$pkgname-config.php ./$confdir/config.php
- install -m 644 -D "$srcdir"/$pkgname.logrotate ./etc/logrotate.d/$pkgname
+ install -m 644 -D "$srcdir"/$pkgname.logrotate ./etc/logrotate.d/$_pkgname
install -m 755 -D "$srcdir"/occ ./usr/bin/occ
@@ -151,9 +152,9 @@ package() {
doc() {
default_doc
- local target="$subpkgdir"/usr/share/webapps/$pkgname/core/doc
+ local target="$subpkgdir"/usr/share/webapps/$_pkgname/core/doc
mkdir -p "${target%/*}"
- ln -s ../../../doc/$pkgname/core "$target"
+ ln -s ../../../doc/$_pkgname/core "$target"
}
initscript() {
@@ -163,14 +164,14 @@ initscript() {
local confdir="$subpkgdir/etc/$_php/php-fpm.d"
local fpm_name="php-fpm${_php#php}"
- install -m 644 -D "$srcdir"/fpm-pool.conf "$confdir"/$pkgname.conf
- install -m 644 -D "$srcdir"/$pkgname.confd "$subpkgdir"/etc/conf.d/$pkgname
- install -m 755 -D "$srcdir"/$pkgname.cron "$subpkgdir"/etc/periodic/15min/$pkgname
+ install -m 644 -D "$srcdir"/fpm-pool.conf "$confdir"/$_pkgname.conf
+ install -m 644 -D "$srcdir"/$pkgname.confd "$subpkgdir"/etc/conf.d/$_pkgname
+ install -m 755 -D "$srcdir"/$pkgname.cron "$subpkgdir"/etc/periodic/15min/$_pkgname
mkdir -p "$subpkgdir"/etc/init.d
- ln -s $fpm_name "$subpkgdir"/etc/init.d/$pkgname
+ ln -s $fpm_name "$subpkgdir"/etc/init.d/$_pkgname
- install -m 700 -o nextcloud -d "$subpkgdir"/var/tmp/$pkgname
+ install -m 700 -o nextcloud -d "$subpkgdir"/var/tmp/$_pkgname
}
pgsql() {
@@ -219,16 +220,16 @@ _package_app() {
files_sharing) app_deps="-federatedfilesharing";;
photos)
app_deps="-viewer"
- provides="$pkgname-gallery=$pkgver-r$pkgrel"
+ provides="$_pkgname-gallery=$pkgver-r$pkgrel"
;;
# XXX: Provides/replaces for backward compatibility with <12.0.0-r2.
files_pdfviewer | files_videoplayer)
- provides="$pkgname-${appname#files_}"
+ provides="$_pkgname-${appname#files_}"
replaces="$provides"
;;
user_ldap)
- provides="$pkgname-ldap"
+ provides="$_pkgname-ldap"
replaces="$provides"
;;
esac