repocop-collector-systemd-0.02/000075500000000000000000000000001175126254100165565ustar00rootroot00000000000000repocop-collector-systemd-0.02/systemd.filepattern000064400000000000000000000000421175126254100225010ustar00rootroot00000000000000^/lib/systemd/ ^/usr/lib/systemd/ repocop-collector-systemd-0.02/systemd.purge000075500000000000000000000012131175126254100213120ustar00rootroot00000000000000#!/bin/sh datadir="$REPOCOP_TEST_STATEDIR" exceptdir="$REPOCOP_TEST_TMPDIR/except" # like datafilesuffix=.spec datafilesuffix= case $1 in --given) while read key;do rm -rf "$datadir/$key$datafilesuffix"; done ;; --except) mkdir -p "$exceptdir"; while read key; do [ -e "$datadir/$key$datafilesuffix" ] && \ mv -f "$datadir/$key$datafilesuffix" "$exceptdir/"; done rm -rf "$datadir/" mkdir -p "$datadir"; pushd "$exceptdir" >/dev/null # mv -f * # for extra long filelist ls | xargs -I '{}' mv -f '{}' "$datadir" popd >/dev/null rm -rf "$exceptdir" ;; *) echo "error: incorrect option"; exit 9 ;; esac repocop-collector-systemd-0.02/systemd.test000075500000000000000000000011611175126254100211510ustar00rootroot00000000000000#!/bin/sh #[ $REPOCOP_PKG_NAME = 'systemd' ] && exit 0 #keydir="$REPOCOP_TEST_STATEDIR/data/$REPOCOP_PKG_KEY" keydir="$REPOCOP_TEST_STATEDIR/$REPOCOP_PKG_KEY" # more universal (effective if too many files found) # if test -n "$(find "$REPOCOP_PKG_ROOT"/etc/rc.d/init.d/ -maxdepth 1 \! -name 'functions-*' -print -quit)" if stat -t "$REPOCOP_PKG_ROOT"/lib/systemd/* >/dev/null 2>&1 then mkdir -p "$keydir" cp -prL "$REPOCOP_PKG_ROOT"/lib/systemd/* "$keydir" fi if stat -t "$REPOCOP_PKG_ROOT"/usr/lib/systemd/* >/dev/null 2>&1 then mkdir -p "$keydir" cp -prL "$REPOCOP_PKG_ROOT"/usr/lib/systemd/* "$keydir" fi