Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
a5ef6491
Commit
a5ef6491
authored
May 23, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppa: build the dovecot-lucene package
parent
e132125c
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
293 additions
and
36 deletions
+293
-36
Makefile
ppa/Makefile
+30
-6
Vagrantfile
ppa/Vagrantfile
+1
-0
dovecot_lucene.diff
ppa/dovecot_lucene.diff
+262
-30
No files found.
ppa/Makefile
View file @
a5ef6491
all
:
all
:
clean build_postgrey build_dovecot_lucene
clean
:
# Clean.
rm
-rf
/tmp/build
# Prepare to build source packages.
sudo
apt-get
install
-y
git
dpkg-dev
devscripts
dput
mkdir
-p
/tmp/build
# POSTGREY
build_postgrey
:
# Download our fork of the Debian postgrey package.
git clone https://github.com/mail-in-a-box/postgrey /tmp/build/postgrey
...
...
@@ -15,8 +15,6 @@ all:
wget -O /tmp/build/postgrey_1.35.orig.tar.gz http
:
//postgrey.schweikert.ch/pub/postgrey-1.35.tar.gz
# Build the source package.
sudo
apt-get
build-dep
-y
postgrey
(cd
/tmp/build/postgrey;
dpkg-source
-b
.)
(cd
/tmp/build/postgrey;
dpkg-buildpackage
-S
-us
-uc
-nc)
# Sign the packages.
...
...
@@ -28,3 +26,29 @@ all:
# Clear the intermediate files.
rm
-rf
/tmp/build/postgrey
# TESTING BINARY PACKAGE
#sudo apt-get build-dep -y postgrey
#(cd /tmp/build/postgrey; dpkg-buildpackage -us -uc -nc)
build_dovecot_lucene
:
# Get the upstream source.
(
cd
/tmp/build
;
apt-get
source
dovecot
)
# Patch it so that we build dovecot-lucene (and nothing else).
patch
-p1
-d
/tmp/build/dovecot-2.2.9
<
dovecot_lucene.diff
# Build the source package.
(cd
/tmp/build/dovecot-2.2.9;
dpkg-buildpackage
-S
-us
-uc
-nc)
# Sign the packages.
#debsign /tmp/build/dovecot_2.2.9-1ubuntu2.1_amd64.changes
# Upload it.
#dput ppa:mail-in-a-box/ppa /tmp/build/dovecot_2.2.9-1ubuntu2.1_amd64.changes
# TESTING BINARY PACKAGE
# Install build dependencies and build dependencies we've added in our patch,
# and then build the binary package.
#sudo apt-get build-dep -y dovecot
#sudo apt-get install libclucene-dev liblzma-dev libexttextcat-dev libstemmer-dev
#(cd /tmp/build/dovecot-2.2.9; dpkg-buildpackage -us -uc -nc)
ppa/Vagrantfile
View file @
a5ef6491
...
...
@@ -7,5 +7,6 @@ Vagrant.configure("2") do |config|
config
.
vm
.
provision
:shell
,
:inline
=>
<<-
SH
sudo apt-get update
sudo apt-get install -y git dpkg-dev devscripts dput
SH
end
ppa/dovecot_lucene.diff
View file @
a5ef6491
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment