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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Maxim Karasev
aports
Commits
7380979a
Commit
7380979a
authored
14 years ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
main/dovecot: use logfile in default config and provide logrotate
fixes #360
parent
d2534f03
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/dovecot/APKBUILD
+6
-1
6 additions, 1 deletion
main/dovecot/APKBUILD
main/dovecot/dovecot.logrotate
+15
-0
15 additions, 0 deletions
main/dovecot/dovecot.logrotate
with
21 additions
and
1 deletion
main/dovecot/APKBUILD
+
6
−
1
View file @
7380979a
...
...
@@ -2,19 +2,21 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
dovecot
pkgver
=
1.2.11
pkgrel
=
4
pkgrel
=
5
pkgdesc
=
"IMAP and POP3 server"
url
=
"http://www.dovecot.org/"
license
=
"LGPL-2.1"
depends
=
"openssl"
pkgusers
=
"dovecot"
pkggroups
=
"dovecot"
depends
=
"logrotate"
makedepends
=
"libcap-dev zlib-dev openssl-dev bzip2-dev postgresql-dev
mysql-dev sqlite-dev"
install
=
"dovecot.pre-install dovecot.post-install"
subpackages
=
"
$pkgname
-doc
$pkgname
-dev
$pkgname
-pgsql
$pkgname
-mysql
$pkgname
-sqlite"
source
=
"http://www.dovecot.org/releases/1.2/
$pkgname
-
$pkgver
.tar.gz
dovecot.logrotate
dovecot.initd
"
...
...
@@ -42,6 +44,7 @@ package() {
install
-d
"
$pkgdir
"
/var/run/dovecot
\
"
$pkgdir
"
/etc/ssl/dovecot
install
-m755
-D
"
$srcdir
"
/
$pkgname
.initd
"
$pkgdir
"
/etc/init.d/
$pkgname
install
-D
"
$srcdir
"
/dovecot.logrotate
"
$pkgdir
"
/etc/logrotate.d/dovecot
install
doc/dovecot-openssl.cnf
"
$pkgdir
"
/etc/dovecot/
mv
"
$pkgdir
"
/etc/dovecot/dovecot-example.conf
\
"
$pkgdir
"
/etc/dovecot/dovecot.conf
||
return
1
...
...
@@ -57,6 +60,7 @@ package() {
s/\#passdb passwd/passdb passwd/
s/\#\}/\}/
}'
\
-e
's,#log_path =.*,log_path = /var/log/dovecot.log,'
\
"
$pkgdir
"
/etc/dovecot/dovecot.conf
}
...
...
@@ -87,4 +91,5 @@ sqlite() {
}
md5sums
=
"bdac013fd57aa616ea4bdd9ac34557c6 dovecot-1.2.11.tar.gz
aec5cc797ab2acf72ce3b6bb1030345f dovecot.logrotate
c58b474dca20e6e60fa4f1f5b9c726e1 dovecot.initd"
This diff is collapsed.
Click to expand it.
main/dovecot/dovecot.logrotate
0 → 100644
+
15
−
0
View file @
7380979a
/var/log/dovecot*.log {
daily
missingok
copytruncate
rotate 7
compress
notifempty
sharedscripts
postrotate
if /etc/init.d/dovecot -q status ; then \
/etc/init.d/dovecot reload > /dev/null 2>&1 || true ; \
fi;
endscript
}
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