From 2a00834fc7608d498635f9dff4b9c733a315d537 Mon Sep 17 00:00:00 2001 From: Michael Hanson Date: Sat, 27 Mar 2010 03:59:57 +0000 Subject: network-ups-tolls: add some config info to .install --- abs/extra-testing/community/network-ups-tools/PKGBUILD | 2 +- abs/extra-testing/community/network-ups-tools/nut.install | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/abs/extra-testing/community/network-ups-tools/PKGBUILD b/abs/extra-testing/community/network-ups-tools/PKGBUILD index 2b90eb7..1644c2e 100644 --- a/abs/extra-testing/community/network-ups-tools/PKGBUILD +++ b/abs/extra-testing/community/network-ups-tools/PKGBUILD @@ -4,7 +4,7 @@ pkgname=network-ups-tools pkgver=2.4.3 -pkgrel=4 +pkgrel=5 pkgdesc="NUT is a collection of programs for monitoring and administering UPS hardware" arch=('i686' 'x86_64') url="http://www.networkupstools.org/" diff --git a/abs/extra-testing/community/network-ups-tools/nut.install b/abs/extra-testing/community/network-ups-tools/nut.install index f2f02d6..1e6beee 100644 --- a/abs/extra-testing/community/network-ups-tools/nut.install +++ b/abs/extra-testing/community/network-ups-tools/nut.install @@ -5,9 +5,10 @@ post_install() { chmod 0770 /var/state/ups/ chown root:nut /var/state/ups/ chown root:nut /etc/ups/upsd.conf /etc/ups/upsd.users /etc/ups/upsmon.conf - echo ">>> Before starting your UPSd daemon, you must" - echo ">>> edit /etc/ups/ups.conf in order to set your" - echo ">>> UPS driver and port." + echo ">>> Before starting your UPSd daemon, it is imperative" + echo ">>> that you read through and edit where needed these files:" + echo ">>> /etc/ups/{ups.conf,upsd.conf,upsmon.conf,upsd.users}" + echo ">>>" echo ">>> Then add the the upsd service:" echo ">>> $ sudo add_service.sh upsd" } -- cgit v0.12 From d6ad69f1880aa27c88fb8991cd06e749afefe1f1 Mon Sep 17 00:00:00 2001 From: Greg Frost Date: Sat, 27 Mar 2010 15:04:50 +1030 Subject: test-pattern: initial inclusion - work in progress --- abs/core-testing/test-pattern/PKGBUILD | 16 ++ abs/core-testing/test-pattern/test_pattern.bash | 220 ++++++++++++++++++++++++ 2 files changed, 236 insertions(+) create mode 100644 abs/core-testing/test-pattern/PKGBUILD create mode 100755 abs/core-testing/test-pattern/test_pattern.bash diff --git a/abs/core-testing/test-pattern/PKGBUILD b/abs/core-testing/test-pattern/PKGBUILD new file mode 100644 index 0000000..f79ae6a --- /dev/null +++ b/abs/core-testing/test-pattern/PKGBUILD @@ -0,0 +1,16 @@ +pkgname=test-pattern +pkgver=1.0 +pkgrel=1 +arch=('i686') +pkgdesc="script to create test pattern videos" +depends=(imagemagick) + +source=(test_pattern.bash) + +build() { + cd $startdir/src +# mkdir $startdir/pkg/usr/bin/ + install -m755 -D test_pattern.bash $startdir/pkg/usr/bin/test_pattern.bash +} + +md5sums=('a6b424b0ebc07574fa5716eced807127') diff --git a/abs/core-testing/test-pattern/test_pattern.bash b/abs/core-testing/test-pattern/test_pattern.bash new file mode 100755 index 0000000..9cf3228 --- /dev/null +++ b/abs/core-testing/test-pattern/test_pattern.bash @@ -0,0 +1,220 @@ +#!/bin/bash + +w=1280 +h=1024 + +w=1920 +h=1080 + +w=640 +h=480 + +barw=$((w/32)) +barstep=$((w/90)) +barstart=$((-barw/barstep-1)) + +frames=$((w/2)) + +unit=$((h*2/27)) +gridlw=$((unit*3/43)) + +nvgrid=$(((h-gridlw)/unit)) +nhgrid=$(((((w-gridlw)/unit)-1)/2*2+1)) + +gridstartx=$((w/2-(nhgrid*unit+gridlw)/2-1)) +gridstarty=$((h/2-(nvgrid*unit+gridlw)/2-1)) + +echo nvgrid=$nvgrid +echo nhgrid=$nhgrid +echo gridstartx=$gridstartx +echo gridstarty=$gridstarty + +TEMPDIR=./tmp +if [ ! -d "$TEMPDIR" ] ; then + mkdir $TEMPDIR +fi + +#TEMPDIR=$(mktemp -d --tmpdir=/tmp) + +unset checker +checker=( -fill "rgb(192,192,192)" ) +for ((g=-9;g<=7;g=g+2)) ; do + checker=( "${checker[@]}" + -draw + "rectangle $((w/2+g*unit*7/10)),$((gridstarty+unit*3+gridlw)) $((w/2+(g+1)*unit*7/10)),$((gridstarty+unit*4+gridlw))" ) +done + +checker=( "${checker[@]}" -fill black ) +for ((g=-8;g<=8;g=g+2)) ; do + checker=( "${checker[@]}" + -draw + "rectangle $((w/2+g*unit*7/10)),$((gridstarty+unit*3+gridlw)) $((w/2+(g+1)*unit*7/10)),$((gridstarty+unit*4+gridlw))" ) +done + +unset stripe +stripe=( -fill white ) + +for ((g=0;g<5;g++)) ; do + startx=$((w/2+(3-g*2)*unit)) + endx=$((startx+2*unit)) + + for ((x=startx;x