[arch-commits] Commit in bip/repos (8 files)
Florian Pritz
bluewind at archlinux.org
Wed Mar 2 18:26:33 UTC 2016
Date: Wednesday, March 2, 2016 @ 19:26:33
Author: bluewind
Revision: 164205
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
bip/repos/community-staging-i686/
bip/repos/community-staging-i686/PKGBUILD
(from rev 164203, bip/trunk/PKGBUILD)
bip/repos/community-staging-i686/bip.install
(from rev 164203, bip/trunk/bip.install)
bip/repos/community-staging-i686/bip.service
(from rev 164203, bip/trunk/bip.service)
bip/repos/community-staging-x86_64/
bip/repos/community-staging-x86_64/PKGBUILD
(from rev 164204, bip/trunk/PKGBUILD)
bip/repos/community-staging-x86_64/bip.install
(from rev 164204, bip/trunk/bip.install)
bip/repos/community-staging-x86_64/bip.service
(from rev 164204, bip/trunk/bip.service)
--------------------------------------+
community-staging-i686/PKGBUILD | 40 +++++++++++++++++++++++++++++++++
community-staging-i686/bip.install | 21 +++++++++++++++++
community-staging-i686/bip.service | 12 +++++++++
community-staging-x86_64/PKGBUILD | 40 +++++++++++++++++++++++++++++++++
community-staging-x86_64/bip.install | 21 +++++++++++++++++
community-staging-x86_64/bip.service | 12 +++++++++
6 files changed, 146 insertions(+)
Copied: bip/repos/community-staging-i686/PKGBUILD (from rev 164203, bip/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-03-02 18:26:33 UTC (rev 164205)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Martin Wimpress <code at flexion.org>
+
+pkgname=bip
+pkgver=0.8.9
+pkgrel=6
+pkgdesc="Multiuser IRC proxy that supports replaying of logged conversations."
+arch=('i686' 'x86_64')
+url="http://bip.milkypond.org/"
+license=('GPL')
+depends=('openssl')
+source=("http://pkgs.fedoraproject.org/repo/pkgs/${pkgname}/${pkgname}-${pkgver}.tar.gz/04158ad020db221ed87cdc03660ef6c9/${pkgname}-${pkgver}.tar.gz"
+ "${pkgname}.service")
+md5sums=('04158ad020db221ed87cdc03660ef6c9'
+ 'a716f77fc40573cd359d9984a9cc8a66')
+install=${pkgname}.install
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ # Don't treat warnings as errors.
+ sed -i 's/-Werror//g' Makefile.in
+ # Make the sample configuration reflect the PKGBUILD defaults
+ sed -i 's:/var/proxy/logs:/var/log/bip:' samples/$pkgname.conf
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure \
+ --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -D -m755 ${srcdir}/${pkgname}-${pkgver}/scripts/bipgenconfig "${pkgdir}"/usr/bin/bipgenconfig
+ install -D -m644 ${srcdir}/${pkgname}-${pkgver}/samples/$pkgname.conf "${pkgdir}"/usr/share/$pkgname/$pkgname.conf.sample
+ install -D -m644 ${srcdir}/${pkgname}-${pkgver}/samples/$pkgname.vim "${pkgdir}"/usr/share/vim/syntax/$pkgname.vim
+ install -D -m 0644 ${srcdir}/${pkgname}.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
+}
Copied: bip/repos/community-staging-i686/bip.install (from rev 164203, bip/trunk/bip.install)
===================================================================
--- community-staging-i686/bip.install (rev 0)
+++ community-staging-i686/bip.install 2016-03-02 18:26:33 UTC (rev 164205)
@@ -0,0 +1,21 @@
+post_install() {
+ if ! getent passwd bip > /dev/null; then
+ echo "==> Creating bip user"
+ /usr/bin/useradd --comment "Bip IRC Proxy" --shell /bin/sh --home /var/lib/bip --system --user-group bip
+ fi
+ mkdir -p /var/run/bip 2>/dev/null
+ chown -R bip:bip /var/run/bip
+ mkdir -p /var/lib/bip 2>/dev/null
+ chown -R bip:bip /var/lib/bip
+ mkdir -p /var/log/bip 2>/dev/null
+ chown -R bip:bip /var/log/bip
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ systemctl stop bip
+ rm -rf /var/run/bip
+}
Copied: bip/repos/community-staging-i686/bip.service (from rev 164203, bip/trunk/bip.service)
===================================================================
--- community-staging-i686/bip.service (rev 0)
+++ community-staging-i686/bip.service 2016-03-02 18:26:33 UTC (rev 164205)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Bip IRC Proxy Server
+After=network.target
+
+[Service]
+User=bip
+Type=forking
+PIDFile=/var/run/bip/bip.pid
+ExecStart=/usr/bin/bip -f /etc/bip.conf -s /var/lib/bip
+
+[Install]
+WantedBy=multi-user.target
Copied: bip/repos/community-staging-x86_64/PKGBUILD (from rev 164204, bip/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-03-02 18:26:33 UTC (rev 164205)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Martin Wimpress <code at flexion.org>
+
+pkgname=bip
+pkgver=0.8.9
+pkgrel=6
+pkgdesc="Multiuser IRC proxy that supports replaying of logged conversations."
+arch=('i686' 'x86_64')
+url="http://bip.milkypond.org/"
+license=('GPL')
+depends=('openssl')
+source=("http://pkgs.fedoraproject.org/repo/pkgs/${pkgname}/${pkgname}-${pkgver}.tar.gz/04158ad020db221ed87cdc03660ef6c9/${pkgname}-${pkgver}.tar.gz"
+ "${pkgname}.service")
+md5sums=('04158ad020db221ed87cdc03660ef6c9'
+ 'a716f77fc40573cd359d9984a9cc8a66')
+install=${pkgname}.install
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ # Don't treat warnings as errors.
+ sed -i 's/-Werror//g' Makefile.in
+ # Make the sample configuration reflect the PKGBUILD defaults
+ sed -i 's:/var/proxy/logs:/var/log/bip:' samples/$pkgname.conf
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure \
+ --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -D -m755 ${srcdir}/${pkgname}-${pkgver}/scripts/bipgenconfig "${pkgdir}"/usr/bin/bipgenconfig
+ install -D -m644 ${srcdir}/${pkgname}-${pkgver}/samples/$pkgname.conf "${pkgdir}"/usr/share/$pkgname/$pkgname.conf.sample
+ install -D -m644 ${srcdir}/${pkgname}-${pkgver}/samples/$pkgname.vim "${pkgdir}"/usr/share/vim/syntax/$pkgname.vim
+ install -D -m 0644 ${srcdir}/${pkgname}.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
+}
Copied: bip/repos/community-staging-x86_64/bip.install (from rev 164204, bip/trunk/bip.install)
===================================================================
--- community-staging-x86_64/bip.install (rev 0)
+++ community-staging-x86_64/bip.install 2016-03-02 18:26:33 UTC (rev 164205)
@@ -0,0 +1,21 @@
+post_install() {
+ if ! getent passwd bip > /dev/null; then
+ echo "==> Creating bip user"
+ /usr/bin/useradd --comment "Bip IRC Proxy" --shell /bin/sh --home /var/lib/bip --system --user-group bip
+ fi
+ mkdir -p /var/run/bip 2>/dev/null
+ chown -R bip:bip /var/run/bip
+ mkdir -p /var/lib/bip 2>/dev/null
+ chown -R bip:bip /var/lib/bip
+ mkdir -p /var/log/bip 2>/dev/null
+ chown -R bip:bip /var/log/bip
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ systemctl stop bip
+ rm -rf /var/run/bip
+}
Copied: bip/repos/community-staging-x86_64/bip.service (from rev 164204, bip/trunk/bip.service)
===================================================================
--- community-staging-x86_64/bip.service (rev 0)
+++ community-staging-x86_64/bip.service 2016-03-02 18:26:33 UTC (rev 164205)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Bip IRC Proxy Server
+After=network.target
+
+[Service]
+User=bip
+Type=forking
+PIDFile=/var/run/bip/bip.pid
+ExecStart=/usr/bin/bip -f /etc/bip.conf -s /var/lib/bip
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list