From b9756915e37fcd74054c01a88090b920744adff0 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Thu, 4 Nov 2010 18:57:50 -0500 Subject: linhes-config: remove add_service and remove service. These files are located in runitt --- abs/core/LinHES-config/add_service.sh | 15 --------------- abs/core/LinHES-config/remove_service.sh | 8 -------- 2 files changed, 23 deletions(-) delete mode 100755 abs/core/LinHES-config/add_service.sh delete mode 100755 abs/core/LinHES-config/remove_service.sh diff --git a/abs/core/LinHES-config/add_service.sh b/abs/core/LinHES-config/add_service.sh deleted file mode 100755 index 190d604..0000000 --- a/abs/core/LinHES-config/add_service.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -SERVICE_DIR=/var/service -SCRIPT_DIR=/etc/sv -if [ -d $SCRIPT_DIR/$1 ] -then - if [ -d $SERVICE_DIR/$1 ] - then - echo "$1 already there" - else - ln -s $SCRIPT_DIR/$1 $SERVICE_DIR/$1 - echo "adding $1" - fi -else - echo "couldn't find $SCRIPT_DIR/$1" -fi diff --git a/abs/core/LinHES-config/remove_service.sh b/abs/core/LinHES-config/remove_service.sh deleted file mode 100755 index 6cc4b4f..0000000 --- a/abs/core/LinHES-config/remove_service.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -SERVICE_DIR=/var/service -SCRIPT_DIR=/etc/sv -if [ -e $SERVICE_DIR/$1 ] -then - echo "removing" - rm $SERVICE_DIR/$1 -fi -- cgit v0.12 From 42fd9c0e95c0440580cc2c80a48f87eb2df56669 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Fri, 5 Nov 2010 00:06:31 +0000 Subject: linhes-config: update common files for /service --- abs/core/LinHES-config/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/abs/core/LinHES-config/PKGBUILD b/abs/core/LinHES-config/PKGBUILD index ef25620..9552089 100644 --- a/abs/core/LinHES-config/PKGBUILD +++ b/abs/core/LinHES-config/PKGBUILD @@ -1,6 +1,6 @@ pkgname=LinHES-config -pkgver=2.1 -pkgrel=45 +pkgver=2.2 +pkgrel=1 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev LinHes-config ) pkgdesc="Install and configure your system" depends=('bc' 'libstatgrab' 'mysql-python' 'expect' 'curl' 'dnsutils' 'parted' -- cgit v0.12 From 5b97a91f0f9afa1703812ced446ed3d9aaf4f79c Mon Sep 17 00:00:00 2001 From: James Meyer Date: Fri, 5 Nov 2010 00:07:10 +0000 Subject: runit: update to 2.2 This change marks the migration of services from /var/service to /service --- abs/core/runit/PKGBUILD | 6 +++--- abs/core/runit/add_service.sh | 2 +- abs/core/runit/remove_service.sh | 2 +- abs/core/runit/runit.install | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/abs/core/runit/PKGBUILD b/abs/core/runit/PKGBUILD index 1dd2838..a3b202e 100644 --- a/abs/core/runit/PKGBUILD +++ b/abs/core/runit/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit pkgver=2.1.1 -pkgrel=1 +pkgrel=3 pkgdesc="A replacement for sysvinit, and other init schemes, with service supervision" url="http://smarden.org/runit/" license=('BSD') @@ -64,8 +64,8 @@ package() { } md5sums=('8fa53ea8f71d88da9503f62793336bc3' - '5828ac37537d60ded00252dc02d462c6' - '984dbe096b0db26ad9f3f5b51addd9c9' + '8ee2bffb82e18ab6a10f01dc2cada38a' + 'e7845f7609459542e6c5fc024a9ef922' 'e347ea8cf2981f2cd4105111ea1ce1d4' '263198ec006b87891ea0f3ab1d103086' '3ec5f3013dcbd60b6b957d17ba220585' diff --git a/abs/core/runit/add_service.sh b/abs/core/runit/add_service.sh index 237af13..791639a 100755 --- a/abs/core/runit/add_service.sh +++ b/abs/core/runit/add_service.sh @@ -1,5 +1,5 @@ #!/bin/bash -SERVICE_DIR=/var/service +SERVICE_DIR=/service SCRIPT_DIR=/etc/sv if [ -d $SCRIPT_DIR/$1 ] then diff --git a/abs/core/runit/remove_service.sh b/abs/core/runit/remove_service.sh index 16c7ecf..349f5bb 100755 --- a/abs/core/runit/remove_service.sh +++ b/abs/core/runit/remove_service.sh @@ -1,5 +1,5 @@ #!/bin/bash -SERVICE_DIR=/var/service +SERVICE_DIR=/service SCRIPT_DIR=/etc/sv if [ -e $SERVICE_DIR/$1 ] then diff --git a/abs/core/runit/runit.install b/abs/core/runit/runit.install index 1728bc6..392d7be 100755 --- a/abs/core/runit/runit.install +++ b/abs/core/runit/runit.install @@ -27,7 +27,6 @@ fi } post_install () { - mkdir /var/service [ -e /sbin/halt ] || ln -s /sbin/halt.script /sbin/halt [ -e /sbin/reboot ] || ln -s /sbin/reboot.script /sbin/reboot [ -e /sbin/poweroff ] || ln -s /sbin/poweroff.script /sbin/poweroff @@ -40,7 +39,7 @@ post_install () { # arg 2: the old package version post_upgrade(){ - /bin/true + post_install } op=$1 -- cgit v0.12 From 2f185fc6b59b40d65f4b60276cf41aeffac7c3f6 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Fri, 5 Nov 2010 00:07:29 +0000 Subject: runit-scripts: updated for runit 2.2.1 --- abs/core/runit-scripts/PKGBUILD | 4 ++-- abs/core/runit-scripts/runit.install | 20 ++++++++++++++++++-- abs/core/runit-scripts/runitscripts/2 | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index 4fcc454..46c55b6 100755 --- a/abs/core/runit-scripts/PKGBUILD +++ b/abs/core/runit-scripts/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts -pkgver=1.8.0 -pkgrel=121 +pkgver=2.1.1 +pkgrel=2 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" diff --git a/abs/core/runit-scripts/runit.install b/abs/core/runit-scripts/runit.install index 1e3f619..138d498 100755 --- a/abs/core/runit-scripts/runit.install +++ b/abs/core/runit-scripts/runit.install @@ -22,11 +22,11 @@ fi post_install () { - mkdir /var/service + [ -e /service ] || mkdir /service servicelist="acpid cron frontend lircd ntpd alsa-utils avahi dbus portmap sshd syslog-ng tty2 tty3" for i in $servicelist do - ln -s /etc/sv/$i /var/service/$i + ln -s /etc/sv/$i /service/$i done [ -e /sbin/halt ] || ln -s /sbin/halt.script /sbin/halt @@ -48,6 +48,22 @@ post_upgrade(){ [ -e /sbin/poweroff ] || ln -s /sbin/poweroff.script /sbin/poweroff [ -e /sbin/reboot.init ] || ln -s /sbin/halt-init /sbin/reboot.init [ -e /sbin/poweroff.init ] || ln -s /sbin/halt-init /sbin/poweroff.init + + if [ -e /var/service ] + then + if [ ! -e /service ] + then + mkdir /service + cd /var/service + for i in * + do + ln -s /etc/sv/$i /service/$i + done + fi + + fi + + } op=$1 diff --git a/abs/core/runit-scripts/runitscripts/2 b/abs/core/runit-scripts/runitscripts/2 index 079b644..c1acfa0 100755 --- a/abs/core/runit-scripts/runitscripts/2 +++ b/abs/core/runit-scripts/runitscripts/2 @@ -5,4 +5,4 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin #runsvchdir default >/dev/null exec env - PATH=$PATH \ -runsvdir -P /var/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................' +runsvdir -P /service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................' -- cgit v0.12 From a79540b84f7f74607fc0a742518f8d88d88b84ad Mon Sep 17 00:00:00 2001 From: James Meyer Date: Fri, 5 Nov 2010 00:38:39 +0000 Subject: mercurial: updated to 1.7 ref #647 --- abs/extra/mercurial/ChangeLog | 21 ------------- abs/extra/mercurial/PKGBUILD | 58 +++++++++++++++++++---------------- abs/extra/mercurial/mercurial.profile | 1 + 3 files changed, 33 insertions(+), 47 deletions(-) delete mode 100644 abs/extra/mercurial/ChangeLog create mode 100644 abs/extra/mercurial/mercurial.profile diff --git a/abs/extra/mercurial/ChangeLog b/abs/extra/mercurial/ChangeLog deleted file mode 100644 index cea6101..0000000 --- a/abs/extra/mercurial/ChangeLog +++ /dev/null @@ -1,21 +0,0 @@ - -2009-03-05 Douglas Soares de Andrade - - * Updated for i686: 1.2 - -2009-01-03 Douglas Soares de Andrade - - * Updated for i686: 1.1.2 - -2008-12-02 Douglas Soares de Andrade - - * Updated for i686: 1.1 - -2008-08-17 Douglas Soares de Andrade - - * Updated for i686: 1.0.2 - -2008-07-10 Douglas Soares de Andrade - - * Updated for i686: 1.0.1 - diff --git a/abs/extra/mercurial/PKGBUILD b/abs/extra/mercurial/PKGBUILD index 08d38e3..0ce6012 100644 --- a/abs/extra/mercurial/PKGBUILD +++ b/abs/extra/mercurial/PKGBUILD @@ -1,35 +1,41 @@ -# $Id: PKGBUILD 29080 2009-03-05 10:10:06Z douglas $ -# Contributor: Jeff Mickey -# Contributor: Giovanni Scafora -# Contributor: David 'SleepyDog' -# Maintainer: Douglas Soares de Andrade +# $Id: PKGBUILD 97863 2010-11-02 05:48:54Z giovanni $ +# Maintainer: Giovanni Scafora +# Contributor: Douglas Soares de Andrade pkgname=mercurial -pkgver=1.2 +pkgver=1.7 pkgrel=1 pkgdesc="A scalable distributed SCM tool" -url="http://www.selenic.com/mercurial" -license=("GPL") -depends=('python>=2.6') -source=(http://www.selenic.com/mercurial/release/$pkgname-$pkgver.tar.gz) arch=('i686' 'x86_64') +url="http://www.selenic.com/mercurial" +license=('GPL') +depends=('python2') +optdepends=('tk: for the hgk GUI') +source=(http://www.selenic.com/mercurial/release/${pkgname}-${pkgver}.tar.gz + mercurial.profile) +md5sums=('698948ff128d265db55bee8149445556' + '43e1d36564d4c7fbe9a091d3ea370a44') build() { - cd $startdir/src/$pkgname-$pkgver - python setup.py install --root $startdir/pkg - - install -d $startdir/pkg/usr/share/man/{man1,man5} - install -m644 doc/hg.1 $startdir/pkg/usr/share/man/man1 - install -m644 doc/{hgrc.5,hgignore.5} $startdir/pkg/usr/share/man/man5 - install -m755 contrib/hgk $startdir/pkg/usr/bin - install -m644 -D contrib/zsh_completion $startdir/pkg/usr/share/zsh/site-functions/_hg - install -m644 -D contrib/bash_completion $startdir/pkg/etc/bash_completion.d/hg - install -d $startdir/pkg/usr/share/emacs/site-lisp - install -m644 contrib/{mq.el,mercurial.el} $startdir/pkg/usr/share/emacs/site-lisp - install -m644 -D contrib/vim/HGAnnotate.vim $startdir/pkg/usr/share/vim/syntax/HGAnnotate.vim + cd "${srcdir}/${pkgname}-${pkgver}" + python2 setup.py install --root="${pkgdir}/" --optimize=1 || return 1 + + #sed -i -e 's#env python#env python2#' \ + # "${pkgdir}"/usr/lib/python2.7/site-packages/mercurial/lsprof.py + + install -d ${pkgdir}/usr/share/man/{man1,man5} + install -m644 doc/hg.1 "${pkgdir}/usr/share/man/man1" || return 1 + install -m644 doc/{hgrc.5,hgignore.5} "${pkgdir}/usr/share/man/man5" || return 1 + install -m755 contrib/hgk "${pkgdir}/usr/bin" || return 1 + install -m644 -D contrib/zsh_completion "${pkgdir}/usr/share/zsh/site-functions/_hg" || return 1 + install -m644 -D contrib/bash_completion "${pkgdir}/etc/bash_completion.d/hg" || return 1 + install -d "${pkgdir}/usr/share/emacs/site-lisp" + install -m644 contrib/{mq.el,mercurial.el} "${pkgdir}/usr/share/emacs/site-lisp" || return 1 + + vimpath="${pkgdir}/usr/share/vim/vimfiles" + install -Dm644 contrib/vim/HGAnnotate.vim "${vimpath}/syntax/HGAnnotate.vim" || return 1 - # Autoloading plugins to vim = no good. - # install -d $startdir/pkg/usr/share/vim/plugin - # install -m644 contrib/vim/{hg-menu.vim,hgcommand.vim,patchreview.vim} $startdir/pkg/usr/share/vim/plugin + # set some variables + install -m755 -d ${pkgdir}/etc/profile.d + install -m755 ${srcdir}/mercurial.profile "${pkgdir}/etc/profile.d/mercurial.sh" || return 1 } -md5sums=('ac9d16b078f99f7a89d6865421570f05') diff --git a/abs/extra/mercurial/mercurial.profile b/abs/extra/mercurial/mercurial.profile new file mode 100644 index 0000000..fc96182 --- /dev/null +++ b/abs/extra/mercurial/mercurial.profile @@ -0,0 +1 @@ +export HG=/usr/bin/hg -- cgit v0.12