Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
a78c5e79
Commit
a78c5e79
authored
14 years ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
main/roundcubemail: upgrade to 0.5.1
parent
f748f363
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/roundcubemail/APKBUILD
+37
-8
37 additions, 8 deletions
main/roundcubemail/APKBUILD
main/roundcubemail/roundcubemail.post-upgrade
+21
-0
21 additions, 0 deletions
main/roundcubemail/roundcubemail.post-upgrade
with
58 additions
and
8 deletions
main/roundcubemail/APKBUILD
+
37
−
8
View file @
a78c5e79
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
roundcubemail
pkgname
=
roundcubemail
pkgver
=
0.
4.2
pkgver
=
0.
5.1
pkgrel
=
1
pkgrel
=
0
pkgdesc
=
"A PHP web-based mail client"
pkgdesc
=
"A PHP web-based mail client"
url
=
"http://www.roundcube.net"
url
=
"http://www.roundcube.net"
arch
=
"
all
"
arch
=
"
noarch
"
license
=
"GPL"
license
=
"GPL"
install
=
"
$pkgname
.post-upgrade"
install
=
"
$pkgname
.post-upgrade"
depends
=
"php php-imap php-xml php-json"
depends
=
"php php-imap php-xml php-json"
makedepends
=
""
makedepends
=
""
source
=
"http://downloads.sourceforge.net/sourceforge/
$pkgname
/
$pkgname
-
$pkgver
.tar.gz"
source
=
"http://downloads.sourceforge.net/sourceforge/
$pkgname
/
$pkgname
-
$pkgver
.tar.gz"
build
()
_src
=
"
$srcdir
"
/roundcubemail-
$pkgver
{
prepare
()
{
cd
"
$_src
"
# fix permissions
find
.
-type
f
-print
| xargs
chmod
a-x
# remove .htaccess
find
.
-name
\.
htaccess
-print
| xargs
rm
-f
# fixup paths to use the right paths
sed
-i
-e
's|temp/|/tmp/|'
\
-e
's|config/|/etc/roundcube/|'
\
-e
's|logs/|/var/log/roundcube/|'
\
config/main.inc.php.dist
||
return
1
sed
-i
-e
's|logs/|/var/log/roundcube/|'
\
-e
's|config/|/etc/roundcube/|'
\
program/include/main.inc
||
return
1
# cleanup
sed
-i
's/\r//'
SQL/mssql.initial.sql
rm
-rf
logs temp installer
}
build
()
{
return
0
}
package
()
{
_instdir
=
"
$pkgdir
"
/usr/share/webapps/roundcube
_instdir
=
"
$pkgdir
"
/usr/share/webapps/roundcube
mkdir
-p
"
${
_instdir
}
"
mkdir
-p
"
${
_instdir
}
"
cd
"
${
_instdir
}
"
cd
"
${
_instdir
}
"
cp
-r
a
"
$srcdir
"
/roundcubemail-
$pkgver
/
*
.
cp
-r
p
"
$srcdir
"
/roundcubemail-
$pkgver
/
*
.
# install config in /etc/roundcube so config files are not overwritten
# install config in /etc/roundcube so config files are not overwritten
# on upgrades
# on upgrades
mkdir
-p
"
$pkgdir
"
/etc/
mkdir
-p
"
$pkgdir
"
/etc/
mv
config
"
$pkgdir
"
/etc/roundcube
mv
config
"
$pkgdir
"
/etc/roundcube
ln
-s
/etc/roundcube config
install
-d
"
$pkgdir
"
/var/log/roundcube
}
}
md5sums
=
"
d28417f0f16ff2a251a964be153c967a
roundcubemail-0.
4.2
.tar.gz"
md5sums
=
"
f462d4b3999121679ec103ba2dc38e8d
roundcubemail-0.
5.1
.tar.gz"
This diff is collapsed.
Click to expand it.
main/roundcubemail/roundcubemail.post-upgrade
+
21
−
0
View file @
a78c5e79
...
@@ -24,3 +24,24 @@ if [ -L /usr/share/webapps/roundcube/config.apk-new ] && \
...
@@ -24,3 +24,24 @@ if [ -L /usr/share/webapps/roundcube/config.apk-new ] && \
/usr/share/webapps/roundcube/config
/usr/share/webapps/roundcube/config
fi
fi
# logs and temp moved
if
[
-d
/usr/share/webapps/roundcube/logs
]
;
then
mv
/usr/share/webapps/roundcube/logs/
*
\
/var/log/roundcube/
# clone permissions
chown
$(
stat
-c
%U:%G /usr/share/webapps/roundcube/logs
)
\
/var/log/roundcube
fi
if
[
-d
/usr/share/webapps/roundcube/temp
]
;
then
mv
/usr/share/webapps/roundcube/temp/
*
\
/tmp/
fi
# display info about upgrade
echo
"*"
>
&2
echo
"* Please remember to manually update your database schema:"
>
&2
echo
"*"
>
&2
ls
/usr/share/webapps/roundcube/SQL/
*
.up
*
.
*
>
&2
exit
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment