Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

inspircd 2.0.10 PKGBUILD

By: a guest on Jan 16th, 2013  |  syntax: Bash  |  size: 2.10 KB  |  hits: 148  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=inspircd
  2. pkgver=2.0.10
  3. pkgrel=1
  4. pkgdesc='A lightweight IRC daemon'
  5. arch=('x86_64' 'i686')
  6. url='http://www.inspircd.org/'
  7. license=('GPL2')
  8. depends=('perl')
  9. makedepends=('pkg-config' 'libmysqlclient' 'postgresql' 'sqlite3' 'libldap' 'geoip'
  10.              'tre' 'gnutls' 'openssl' 'libgcrypt')
  11. optdepends=('gnutls: m_ssl_gnutls'
  12.             'libgcrypt: m_ssl_gnutls'
  13.             'openssl: m_ssl_openssl'
  14.             'libmysqlclient: m_mysql'
  15.             'pcre: m_regex_pcre'
  16.             'postgresql: m_pgsql'
  17.             'sqlite3: m_sqlite3'
  18.             'libldap: m_ldapoper and m_ldapauth'
  19.             'geoip: m_geoip'
  20.             'tre: m_regex_tre')
  21. install=inspircd.install
  22. source=('https://github.com/inspircd/inspircd/archive/v${pkgver}.tar.gz'
  23.         inspircd.rcd inspircd.service)
  24. md5sums=('8a03e7db1fd43e1106903df7a300a5c0'
  25.          'd084ecb2bcfa7b83e86c63fe142a913b'
  26.          '18c5216038853cd27470123bdcedb761')
  27.  
  28. build() {
  29.   cd "${srcdir}/inspircd-${pkgver}"
  30.  
  31.   ./configure \
  32.     --enable-extras=m_geoip.cpp \
  33.     --enable-extras=m_ldapauth.cpp \
  34.     --enable-extras=m_ldapoper.cpp \
  35.     --enable-extras=m_mysql.cpp \
  36.     --enable-extras=m_pgsql.cpp \
  37.     --enable-extras=m_regex_pcre.cpp \
  38.     --enable-extras=m_regex_posix.cpp \
  39.     --enable-extras=m_regex_tre.cpp \
  40.     --enable-extras=m_sqlite3.cpp
  41.  
  42.   ./configure \
  43.     --prefix=/usr/lib/inspircd \
  44.     --binary-dir=/usr/sbin \
  45.     --module-dir=/usr/lib/inspircd/modules \
  46.     --config-dir=/etc/inspircd \
  47.     --enable-gnutls \
  48.     --enable-openssl \
  49.     --enable-epoll
  50.  
  51.   make
  52. }
  53.  
  54. package() {
  55.   install -Dm755 "${srcdir}"/inspircd.rcd "${pkgdir}"/etc/rc.d/inspircd
  56.   install -Dm644 "${srcdir}"/inspircd.service "${pkgdir}"/usr/lib/systemd/system/inspircd.service
  57.   install -o141 -g141 -dm750 "${pkgdir}/var/log/inspircd"
  58.  
  59.   cd "${srcdir}/inspircd-${pkgver}"
  60.   make DESTDIR="$pkgdir" INSTUID=141 install
  61.  
  62.   mkdir -p "${pkgdir}"/usr/share/inspircd
  63.   mv "${pkgdir}"/etc/inspircd/examples "${pkgdir}"/usr/share/inspircd/examples
  64.  
  65.   rm -rf "${pkgdir}"/usr/lib/inspircd/logs
  66.   rm -rf "${pkgdir}"/usr/lib/inspircd/data
  67. }