diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/Makefile.am | 5 | ||||
-rw-r--r-- | etc/submit.conf | 131 | ||||
-rw-r--r-- | etc/youri-submit | 60 |
3 files changed, 196 insertions, 0 deletions
diff --git a/etc/Makefile.am b/etc/Makefile.am new file mode 100644 index 0000000..3ffc811 --- /dev/null +++ b/etc/Makefile.am @@ -0,0 +1,5 @@ +yourisysconfdir = $(sysconfdir)/youri +completiondir = $(sysconfdir)/bash_completion.d + +dist_yourisysconf_DATA = submit.conf +dist_completion_SCRIPTS = youri-submit diff --git a/etc/submit.conf b/etc/submit.conf new file mode 100644 index 0000000..a7fbf16 --- /dev/null +++ b/etc/submit.conf @@ -0,0 +1,131 @@ +# youri-submit sample configuration file +# $Id: submit.conf 1671 2007-06-28 22:41:51Z guillomovitch $ +# vim:ft=yaml:et:sw=4 + +# helper variables +home: /home/user + +# repository definition +repository: + class: Youri::Repository::PLF + options: + install_root: ${home}/ftp/mandriva + version_root: ${home}/cvs + archive_root: ${home}/backup/mandriva + noarch: i586 + +# targets definitions +targets: + cooker: + steps: + - check-tag + - check-recency + - check-history + - do-sign + - do-install + - do-link + - do-archive + - do-clean + - do-bugzilla + - do-cvs + - do-mail + - do-rss + + 2006.0: + steps: + - check-type + - check-tag + - check-recency + - check-history + - check-precedence + - do-sign + - do-install + - do-link + - do-archive + - do-clean + +# steps definitions +steps: + check-tag: + class: Youri::Submit::Check::Tag + options: + tags: + release: 'plf$' + packager: '<\w+@zarb\.org>$' + distribution: '^Mandriva Linux$' + vendor: '^Penguin Liberation Front$' + + check-recency: + class: Youri::Submit::Check::Recency + + check-history: + class: Youri::Submit::Check::History + + check-precedence: + class: Youri::Submit::Check::Precedence + options: + target: cooker + + check-type: + class: Youri::Submit::Check::Type + type: binary + + do-sign: + class: Youri::Submit::Action::Sign + options: + name: plf@zarb.org + path: ${home}/.gnupg + passphrase: s3kr3t + + do-install: + class: Youri::Submit::Action::Install + + do-link: + class: Youri::Submit::Action::Link + + do-archive: + class: Youri::Submit::Action::Archive + + do-clean: + class: Youri::Submit::Action::Clean + + do-mail: + class: Youri::Submit::Action::Mail + options: + mta: /usr/sbin/sendmail + to: plf-announce@zarb.org + reply_to: plf-discuss@zarb.org + from: plf@zarb.org + prefix: RPM + cc: + hot-base: david@dindinx.org bellamy@neverland.net + dcgui: mathen@ketelhot.de + dclib: mathen@ketelhot.de + Video-DVDRip: dvdrip-users@exit1.org + hackVideo-DVDRip: dvdrip-users@exit1.org + goosnes: tak@bard.sytes.net + avidemux: fixounet@free.fr + vobcopy: robos@muon.de + drip: drip-devel@lists.sourceforge.net + libdscaler: vektor@dumbterm.net + xawdecode: pingus77@ifrance.com + + do-rss: + class: Youri::Submit::Action::RSS + options: + file: ${home}/www/changelog.rss + title: PLF packages updates + link: http://plf.zarb.org/ + description: ChangeLog for PLF packages + + do-cvs: + class: Youri::Submit::Action::CVS + + do-bugzilla: + class: Youri::Submit::Action::Bugzilla + options: + host: localhost + base: plf_bugs + user: plf + pass: s3kr3t + contact: plf@zarb.org diff --git a/etc/youri-submit b/etc/youri-submit new file mode 100644 index 0000000..6feb2c7 --- /dev/null +++ b/etc/youri-submit @@ -0,0 +1,60 @@ +# youri-submit completion +# $Id$ + +_youri-submit() +{ + + local cur prev config + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + + case "$prev" in + --config) + _filedir + return 0 + ;; + --list) + COMPREPLY=( $( compgen -W 'targets steps' -- $cur ) ) + return 0 + ;; + --help) + COMPREPLY=( $( compgen -W 'repository steps' -- $cur ) ) + return 0 + ;; + esac + + if [[ "$cur" == -* ]]; then + COMPREPLY=( $( compgen -W '--define --clean -l --list -h --help -t \ + --test -v --verbose' -- $cur ) ) + # add dangereous option for main command + if [[ ${COMP_WORDS[0]} == youri-submit ]]; then + COMPREPLY=( $( compgen -W '${COMPREPLY[@]} --config --skip-step' \ + -- $cur ) ) + fi + else + _count_args + case $args in + 1) + _find_config + COMPREPLY=( $( compgen -W '$( youri-submit $config --list targets )' -- $cur ) ) + ;; + *) + _filedir + ;; + esac + fi + +} +complete -F _youri-submit youri-submit youri-submit-restricted youri-submit-proxy + +_find_config() +{ + for (( i=1; i < COMP_CWORD; i++ )); do + if [[ "${COMP_WORDS[i]}" == --config ]]; then + config="--config ${COMP_WORDS[i+1]}" + break + fi + done +} |