-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #401 from proftpd/rpmbuild
Do an rpmbuild during Travis CI builds
- Loading branch information
Showing
4 changed files
with
47 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
VERSION=${PACKAGE_VERSION:-1.3.6rc5} | ||
|
||
# Make sure that the necessary packages/tools are installed | ||
yum install -y gcc make git rpm-build | ||
|
||
# These are for the basic proftpd build | ||
yum install -y gettext pkgconfig pam-devel ncurses-devel zlib-devel libacl-devel libcap-devel | ||
|
||
# And these are for --with everything | ||
yum install -y openldap-devel libmemcached-devel mysql-devel pcre-devel postgresql-devel openssl-devel tcp_wrappers-devel | ||
|
||
mkdir git | ||
cd git | ||
git clone --depth 10 https://github.com/proftpd/proftpd.git proftpd-${VERSION} | ||
cd proftpd-${VERSION}/ | ||
./configure | ||
rm -fr .git/ | ||
make dist | ||
cd .. | ||
tar zcvf proftpd-${VERSION}.tar.gz proftpd-${VERSION} | ||
rpmbuild -ta proftpd-${VERSION}.tar.gz --with everything |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters