Commit fe1aa140 authored by Ed Reel's avatar Ed Reel

Fix php7 package to install elegantly

  - Add curl and pcre dependencies to the php7 package
  - Fix openssl package to install elegantly
parent 2d234b51
......@@ -7,17 +7,15 @@ class Openssl < Package
source_sha1 'bdfbdb416942f666865fa48fe13c2d0e588df54f' # source tarball sha1 sum
def self.build # self.build contains commands needed to build the software from source
system './config'
system './config --prefix=/usr/local'
system 'make' # ordered chronologically
end
def self.install # self.install contains commands needed to install the software on the target system
system 'make DESTDIR=/usr/local/ssl install'
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system
system 'cd /usr/local/ssl && \ # make sure cert.pem exists
wget http://curl.haxx.se/ca/cacert.pem && \
mv cacert.pem cert.pem && \
ln -s /usr/local/ssl/bin/openssl /usr/local/bin/openssl' # override the system version (in case of a version mismatch)
# the caveat here is /usr/local/bin should come before /usr/bin in $PATH (the default)
mv cacert.pem cert.pem'
end
end
......@@ -5,15 +5,18 @@ class Php7 < Package
source_url 'http://php.net/distributions/php-7.1.0.tar.xz' # software source tarball url
source_sha1 'c74c920256b9c6873bae696fbb0ec14a02dc8495' # source tarball sha1 sum
depends_on 'curl'
depends_on 'libxml2'
depends_on 'openssl'
depends_on 'pcre'
def self.build # self.build contains commands needed to build the software from source
system './configure \
--prefix=/usr/local \
--with-curl \
--with-gd \
--enable-mbstring \
--with-openssl=/usr/local/ssl \
--with-openssl \
--with-pcre-regex \
--with-zlib'
system 'make' # ordered chronologically
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment