From a270ac00531e9c5ad77edab44ae1092a9604ca76755e6ccc6c3a4ee28c693362 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 11 Sep 2024 13:43:03 +0000 Subject: [PATCH] =?UTF-8?q?-=20Update=20to=201.18.21=20=20=20-=20Consisten?= =?UTF-8?q?tly=20use=20mktemp=20if=20available,=20falling=20back=20to=20te?= =?UTF-8?q?mpfile=20=20=20=20=20=20otherwise.=20-=20Changes=20from=201.18.?= =?UTF-8?q?20=20=20=20-=20Fix=20a=20reversion=20in=20etckeeper=20init=20in?= =?UTF-8?q?=20version=201.18.19.=20-=20Changes=20from=201.18.19=20=20=20-?= =?UTF-8?q?=20Added=20support=20for=20Gentoo=20(emerge,=20qlist,=20and=20c?= =?UTF-8?q?ave)=20=20=20-=20Skip=20running=20pre-commit=20hook=20inside=20?= =?UTF-8?q?linked=20worktrees,=20=20=20=20=20to=20avoid=20it=20updating=20?= =?UTF-8?q?.etckeeper=20with=20the=20permissions=20of=20=20=20=20=20files?= =?UTF-8?q?=20not=20in=20/etc.=20=20=20-=20commit:=20Run=20bzr=20with=20--?= =?UTF-8?q?quiet,=20since=20it=20outputs=20non-errors=20to=20=20=20=20=20s?= =?UTF-8?q?tderr.=20Closes:=20#1018874=20-=20Rebase=20etckeeper-set-packag?= =?UTF-8?q?e-manager.patch=20-=20Use=20%autosetup=20macro.=20Allows=20to?= =?UTF-8?q?=20eliminate=20the=20usage=20of=20deprecated=20=20=20%patchN.?= =?UTF-8?q?=20-=20Do=20not=20have=20the=20main=20package=20recommend=20the?= =?UTF-8?q?=20bash-completion=20=20=20sub-package,=20but=20rather=20have?= =?UTF-8?q?=20the=20subpackage=20supplement=20the=20=20=20combination=20of?= =?UTF-8?q?=20etckeeper=20and=20bash-completion.=20-=20Update=20to=201.18.?= =?UTF-8?q?18:=20=20=20*=20Replace=20deprecated=20egrep=20with=20grep=20-E?= =?UTF-8?q?.=20=20=20*=20Added=20support=20for=20Void=20Linux's=20xbps=20p?= =?UTF-8?q?ackage=20manager.=20-=20Update=20to=201.18.17:=20=20=20*=20Fix?= =?UTF-8?q?=20committing=20of=20files=20with=20spaces=20in=20name=20when?= =?UTF-8?q?=20perl=20is=20not=20available.=20=20=20*=20Ignore=20udev's=20F?= =?UTF-8?q?HS=20violating=20large=20binary=20cache=20file=20/etc/udev/hwdb?= =?UTF-8?q?.bin=20=20=20*=20Avoid=20warning=20messages=20from=20grep=20abo?= =?UTF-8?q?ut=20binary=20files=20when=20there=20are=20=20=20=20=20filename?= =?UTF-8?q?s=20in=20/etc=20that=20do=20not=20correspond=20to=20the=20curre?= =?UTF-8?q?nt=20locale=20settings.=20-=20Update=20to=201.18.16:=20=20=20*?= =?UTF-8?q?=20Improve=20sorting=20stability.=20=20=20*=20Prefer=20mktemp?= =?UTF-8?q?=20over=20tempfile=20as=20the=20latter=20displays=20a=20depreca?= =?UTF-8?q?tion=20=20=20=20=20warning=20since=20debianutils=204.10.=20-=20?= =?UTF-8?q?Update=20to=201.18.15:=20=20=20*=20Use=20"command=20-v"=20rathe?= =?UTF-8?q?r=20than=20"which"=20to=20detect=20installed=20programs,=20=20?= =?UTF-8?q?=20=20=20as=20it=20is=20more=20portable.=20=20=20*=20Improve=20?= =?UTF-8?q?commit=20messages=20generated=20by=20package=20manager=20change?= =?UTF-8?q?s,=20=20=20=20=20listing=20packages=20that=20are=20responsible?= =?UTF-8?q?=20for=20the=20changed=20config=20files.=20=20=20*=20If=20gc.au?= =?UTF-8?q?to=20is=20not=20configured,=20override=20the=20default=20to=20m?= =?UTF-8?q?ake=20it=20gc=20=20=20=20=20ten=20times=20more=20frequently,=20?= =?UTF-8?q?to=20avoid=20wasting=20space=20with=20loose=20objects.=20=20=20?= =?UTF-8?q?*=20update-ignore:=20Preserve=20permissions=20from=20any=20pree?= =?UTF-8?q?xisting=20VCS=20ignore=20file.=20=20=20*=20Removed=20the=20debi?= =?UTF-8?q?an=20directory=20from=20the=20upstream=20source=20package=20as?= =?UTF-8?q?=20it's=20=20=20=20=20not=20being=20maintained;=20see=20the=20d?= =?UTF-8?q?ebian=20package=20for=20an=20up-to-date=20one.=20=20=20*=20debi?= =?UTF-8?q?an/changelog=20moved=20to=20CHANGELOG=20and=20debian/copyright?= =?UTF-8?q?=20to=20COPYRIGHT.=20-=20Rebase=20patches:=20=20=20*=20etckeepe?= =?UTF-8?q?r-avoid-packagelist.patch=20=20=20*=20etckeeper-set-package-man?= =?UTF-8?q?ager.patch=20-=20Fix=20spec=20file=20-=20Update=20to=201.18.14:?= =?UTF-8?q?=20=20=20*=20pacman=205.2=20deprecated=20File=20hooks,=20use=20?= =?UTF-8?q?Path.=20=20=20=20=20Thanks,=20Christian=20Hesse=20=20=20*=20Fix?= =?UTF-8?q?=20vcs=20subcommand=20setup=20for=20zsh=20completion.=20=20=20?= =?UTF-8?q?=20=20Thanks,=20James=20Rowe.=20=20=20*=20Added=20zsh=20complet?= =?UTF-8?q?ion.=20=20=20=20=20Thanks,=20James=20Rowe=20=20=20*=20commit:?= =?UTF-8?q?=20Recent=20changes=20added=20code=20that=20does=20not=20work?= =?UTF-8?q?=20on=20all=20POSIX=20shells.=20=20=20=20=20Fixed=20by=20Thorst?= =?UTF-8?q?en=20Glaser.=20=20=20*=20Fix=20bug=20in=20hostname=20determinat?= =?UTF-8?q?ion=20in=20the=20previous=20release.=20=20=20=20=20Thanks,=20Ch?= =?UTF-8?q?ristian=20Hesse=20=20=20*=20Support=20platforms=20without=20a?= =?UTF-8?q?=20hostname=20command,=20fall=20back=20to=20=20=20=20=20reading?= =?UTF-8?q?=20/etc/hostname.=20=20=20=20=20Thanks,=20Chris=20Morgan=20=20?= =?UTF-8?q?=20*=20commit:=20Support=20-mmessage,=20without=20a=20space,=20?= =?UTF-8?q?since=20eg=20git=20commit=20=20=20=20=20can=20be=20used=20that?= =?UTF-8?q?=20way.=20=20=20=20=20Thanks,=20martin=20f.=20krafft=20=20=20*?= =?UTF-8?q?=20commit:=20When=20multiple=20parameters=20are=20given,=20use?= =?UTF-8?q?=20them=20all=20as=20the=20commit=20=20=20=20=20message,=20inst?= =?UTF-8?q?ead=20of=20the=20old=20behavior=20of=20only=20using=20the=20fir?= =?UTF-8?q?st=20parameter=20and=20=20=20=20=20throwing=20the=20rest=20away?= =?UTF-8?q?.=20=20=20=20=20Thanks,=20martin=20f.=20krafft=20=20=20*=20Avoi?= =?UTF-8?q?d=20post-install=20failing=20when=20ps=20is=20from=20busybox=20?= =?UTF-8?q?or=20another=20=20=20=20=20version=20not=20supporting=20procps-?= =?UTF-8?q?specific=20options.=20=20=20*=20Use=20ps=20--no-headers=20rathe?= =?UTF-8?q?r=20than=20problimatic=20-h=20option.=20=20=20*=20When=20run=20?= =?UTF-8?q?during=20a=20package=20installation,=20include=20in=20the=20com?= =?UTF-8?q?mit=20=20=20=20=20message=20the=20command=20line=20that=20cause?= =?UTF-8?q?d=20etckeeper=20to=20run.=20=20=20=20=20Thanks,=20Laszlo=20Gomb?= =?UTF-8?q?os=20-=20Remove=20idempotent=20%if..%endif=20guards.=20-=20Fix?= =?UTF-8?q?=20incorrect=20trailing=20slash=20in=20make=20install=20line.?= =?UTF-8?q?=20-=20Update=20RPM=20group=20for=20bash-completion.=20-=20indi?= =?UTF-8?q?cated=20that=20subpackages=20are=20noarch.=20-=20modified=20the?= =?UTF-8?q?=20description=20longer.=20-=20obsolete=20cron=20sub=20package?= =?UTF-8?q?=20on=20systemd=20machines=20-=20use=20%license=20-=20dropped?= =?UTF-8?q?=20non=20suse=20support=20=20=20-=20added=20etckeeper-set-packa?= =?UTF-8?q?ge-manager.patch:=20set=20the=20package=20=20=20=20=20manager?= =?UTF-8?q?=20via=20a=20patch=20now=20that=20we=20only=20care=20about=20su?= =?UTF-8?q?se=20-=20bzr=20support:=20=20=20-=20disable=20for=20now=20as=20?= =?UTF-8?q?it=20would=20force=20the=20whole=20package=20to=20be=20=20=20?= =?UTF-8?q?=20=20python2=20bound.=20you=20can=20reenable=20it=20when=20bui?= =?UTF-8?q?lding=20with=20=20=20=20=20--with=3Dbzr=20or=20set=20the=20opti?= =?UTF-8?q?ons=20in=20your=20prjconf:=20=20=20=20=20%define=20=5Fwith=5Fbz?= =?UTF-8?q?r=201=20=20=20=20=20Macros:=20=20=20=20=20%=5Fwith=5Fbzr=201=20?= =?UTF-8?q?=20=20=20=20:Macros=20=20=20-=20change=20bzr=20support=20to=20b?= =?UTF-8?q?e=20in=20a=20subpackage=20if=20enabled=20-=20build=20with=20pyt?= =?UTF-8?q?hon3=20when=20not=20building=20with=20bzr=20support=20=20=20-?= =?UTF-8?q?=20patch=20shebang=20line=20in=20the=20zypper=20plugin=20to=20m?= =?UTF-8?q?atch=20that=20-=20build=20the=20whole=20package=20as=20noarch?= =?UTF-8?q?=20if=20we=20don't=20build=20with=20python=20=20=20as=20we=20ar?= =?UTF-8?q?e=20just=20packaging=20a=20bunch=20of=20shell=20scripts=20-=20m?= =?UTF-8?q?ove=20bash=20completion=20to=20a=20sub=20package,=20which=20is?= =?UTF-8?q?=20recommended=20to=20=20=20keep=20the=20default=20working,=20B?= =?UTF-8?q?R=20and=20Require=20the=20bash-completion=20=20=20package=20for?= =?UTF-8?q?=20path=20ownership=20-=20downgrade=20to=20git-core=20so=20we?= =?UTF-8?q?=20only=20have=20the=20minimal=20git=20for=20small=20=20=20inst?= =?UTF-8?q?alls=20on=20servers=20-=20no=20longer=20build=20the=20cron=20su?= =?UTF-8?q?pport=20on=20systemd=20machines.=20the=20systemd=20=20=20timer?= =?UTF-8?q?=20is=20more=20powerful=20and=20should=20be=20used=20instead.?= =?UTF-8?q?=20-=20when=20uninstalling=20we=20should=20also=20disable=20and?= =?UTF-8?q?=20stop=20the=20systemd=20=20=20timer=20-=20only=20ship=20the?= =?UTF-8?q?=20documentation=20files=20that=20are=20also=20shipped=20in=20t?= =?UTF-8?q?he=20=20=20debian=20package=20-=20update=20to=201.18.8:=20=20?= =?UTF-8?q?=20*=20Work=20around=20git=20commit's=20lack=20of=20robustness,?= =?UTF-8?q?=20by=20providing=20=20=20=20=20reasonable=20default=20values?= =?UTF-8?q?=20for=20GIT=5FCOMMITTER=5FEMAIL=20etc.=20=20=20=20=20This=20wa?= =?UTF-8?q?s=20already=20done=20as=20part=20of=20the=20su/sudo=20handling,?= =?UTF-8?q?=20=20=20=20=20and=20is=20now=20always=20done.=20=20=20*=20Don'?= =?UTF-8?q?t=20hardcode=20the=20master=20branch=20when=20pushing=20to=20PU?= =?UTF-8?q?SH=5FREMOTE.=20=20=20=20=20Instead,=20let=20git=20push=20whatev?= =?UTF-8?q?er=20branches=20it=20is=20configured=20to=20=20=20=20=20push=20?= =?UTF-8?q?to=20that=20remote.=20-=20Drop=200001-Remove-env-from-shebang-i?= =?UTF-8?q?n-zypper-plugin.patch=20because=20=20=20now=20in=20upstream.=20?= =?UTF-8?q?-=20update=20to=201.18.7:=20=20=20*=20Will=20work=20on=20system?= =?UTF-8?q?s=20that=20don't=20have=20perl.=20(Perl=20is=20still=20used=20?= =?UTF-8?q?=20=20=20=20when=20available).=20=20=20*=20Prevent=20LC=5FALL?= =?UTF-8?q?=20overriding=20the=20LC=5FCOLLATE=20used=20to=20sort=20metadat?= =?UTF-8?q?a.=20-=20includes=20changes=20from=201.18.6:=20=20=20*=20Only?= =?UTF-8?q?=20show=20errors=20(no=20progress=20indicators)=20when=20pushin?= =?UTF-8?q?g=20=20=20=20=20Git/Mercurial=20repos=20to=20avoid=20unecessary?= =?UTF-8?q?=20cron=20mails.=20=20=20*=20Fix=20regex=20in=2020-warn-problem?= =?UTF-8?q?-files.=20=20=20*=20Support=20added=20for=20apk=20(alpine=20lin?= =?UTF-8?q?ux)=20-=20Lint=20spec=20file=20-=20Point=20source=20URL=20to=20?= =?UTF-8?q?upstream=20tarball=20-=20Mark=20dependency=20on=20python-base?= =?UTF-8?q?=20per=20rpmlint=20-=20Patches=20/=20source=20modifications:=20?= =?UTF-8?q?=20=20*=20Add=200001-Remove-env-from-shebang-in-zypper-plugin.p?= =?UTF-8?q?atch=20=20=20=20=20-=20fixes=20rpmlint=20warning=20about=20depe?= =?UTF-8?q?ndency=20detection=20=20=20*=20Rebase=20etckeeeper-avoid-packag?= =?UTF-8?q?elist.patch=20=20=20*=20Remove=20junk=20file=20caught=20by=20rp?= =?UTF-8?q?mlint=20(.mdwn)=20-=20Remove=20redundant=20sections=20-=20updat?= =?UTF-8?q?e=20Source=20to=201.18.5:=20=20=20-=20Make=20etckeeper=20commit?= =?UTF-8?q?=20store=20metadata=20changes.=20The=20pre-commit=20=20=20=20?= =?UTF-8?q?=20hook=20has=20always=20(and=20continues)=20to=20do=20that,=20?= =?UTF-8?q?but=20pre-commit=20is=20=20=20=20=20only=20run=20when=20there?= =?UTF-8?q?=20are=20changes=20to=20tommit.=20This=20makes=20=20=20=20=20me?= =?UTF-8?q?tadata-only=20changes=20get=20committed.=20=20=20-=20Move=20sys?= =?UTF-8?q?temd=20files=20to=20/lib/systemd;=20/usr/lib/systemd=20is=20not?= =?UTF-8?q?=20=20=20=20=20used=20on=20Debian.=20-=20fix=20wrong=20path=20f?= =?UTF-8?q?or=20systemd=20in=20rpm=20based=20distros=20with=20sed=20in=20s?= =?UTF-8?q?pec=20-=20update=20Source=20to=201.18.4:=20=20=20-=20Optimised?= =?UTF-8?q?=20find=20for=20special=20and=20hard=20linked=20files.=20=20=20?= =?UTF-8?q?-=20Adjust=20when=20Pacman=205=20calls=20etckeeper=20hooks.=20?= =?UTF-8?q?=20=20-=20Only=20run=20Pacman=20hooks=20when=20files=20in=20/et?= =?UTF-8?q?c=20have=20changed.=20=20=20-=20Added=20systemd=20timer=20that?= =?UTF-8?q?=20can=20run=20etckeeper=2010=20minutes=20after=20boot,=20and?= =?UTF-8?q?=20also=20=20=20=20=20daily.=20It's=20not=20enabled=20by=20defa?= =?UTF-8?q?ult,=20partly=20because=20of=20overlap=20with=20the=20=20=20=20?= =?UTF-8?q?=20cron=20job.=20-=20update=20Source=20to=201.18.3:=20=20=20-?= =?UTF-8?q?=20Added=20support=20for=20pacmatic,=20contributed=20by=20nicol?= =?UTF-8?q?aichuk.=20=20=20-=20bzr:=20make=20sure=20EMAIL=20is=20defined?= =?UTF-8?q?=20=20=20-=20Fix=20Makefile=20version=20patterns=20to=20ignore?= =?UTF-8?q?=20non-native=20version=20number=20=20=20-=20Support=20~/.confi?= =?UTF-8?q?g/git/config=20when=20determining=20the=20author=20name=20and?= =?UTF-8?q?=20email.=20=20=20-=20Added=20support=20for=20Arch's=20pacman?= =?UTF-8?q?=20package=20manager=20version=205.=20=20=20-=20Set=20HOME=20if?= =?UTF-8?q?=20it's=20not=20set,=20as=20is=20the=20case=20when=20using=20ub?= =?UTF-8?q?untu's=20=20=20=20=20update-manager.=20=20=20-=20Move=20bash=20?= =?UTF-8?q?completion=20out=20of=20etc=20and=20into=20usr.=20-=20update=20?= =?UTF-8?q?Source=20to=201.18.2:=20=20=20-=20Use=20getent=20utility=20inst?= =?UTF-8?q?ead=20of=20perl.=20(Elan=20Ruusam=C3=A4e)=20=20=20-=20Initial?= =?UTF-8?q?=20FreeBSD=20support=20with=20pkgng=20plugin.=20(William=20Joha?= =?UTF-8?q?nsson)=20=20=20-=20Fix=20README.md=20symlink=20in=20package=20(?= =?UTF-8?q?Sebastian=20Schmidt,=20Antoine=20Beaupr=C3=A9,=20=20=20=20=20cl?= =?UTF-8?q?oses:=20#791566)=20=20=20-=20Fix=20typo=20of=20GIT=5FCOMMITTER?= =?UTF-8?q?=5FEMAIL.=20-=20update=20Source=20to=201.18.1=20=20=20-=20Add?= =?UTF-8?q?=20myself=20as=20maintainer=20(Closes:=20#768516)=20=20=20-=20K?= =?UTF-8?q?eeping=20the=20package=20native=20as=20I=20do=20not=20intend=20?= =?UTF-8?q?to=20diverge=20from=20=20=20=20=20upstream.=20=20=20-=20Update?= =?UTF-8?q?=20git=20URL=20in=20control=20file.=20-=20update=20to=20Sourcce?= =?UTF-8?q?=20to=201.18:=20=20=20-=20Send=20yum=20pre-commit=20output=20to?= =?UTF-8?q?=20/dev/null=20=20=20-=20Set=20LANG=3DC=20internally=20when=20d?= =?UTF-8?q?oing=20some=20operations=20that=20have=20=20=20=20=20been=20rep?= =?UTF-8?q?orted=20to=20fail=20in=20other=20locales.=20-=20update=20Source?= =?UTF-8?q?=20to=201.17:=20=20=20-=20Fix=20name=20of=20DNF=20plugin.=20=20?= =?UTF-8?q?=20-=20Add=20--version=20=20=20=20=20Thanks=20Andreas=20Wansner?= =?UTF-8?q?.=20=20=20-=20New=20website,=20http://etckeeper.branchable.com/?= =?UTF-8?q?=20=20=20-=20Add=20build-depends=20on=20dh-python.=20-=20update?= =?UTF-8?q?=20Source=20to=201.16:=20=20=20-=20Added=20support=20for=20Fedo?= =?UTF-8?q?ra's=20DNF=20highlevel=20package=20manager.=20=20=20-=20Add=20a?= =?UTF-8?q?rchitecture=20info=20to=20dpkg=20list-installed.=20Closes:=20#7?= =?UTF-8?q?68145=20=20=20-=20Orphaned=20the=20Debian=20package.=20-=20reba?= =?UTF-8?q?se=20patch=20etckeeper-avoid-packagelist.patch=20-=20change=20s?= =?UTF-8?q?ource=20url=20to=20github=20-=20remove=20unnecessary=20file=20e?= =?UTF-8?q?tckeeper-rpmlintrc=20-=20update=20Source=20to=201.15:=20=20=20-?= =?UTF-8?q?=20Recommend=20cron-daemon,=20rather=20than=20cron,=20as=20etck?= =?UTF-8?q?eeper=20only=20needs=20=20=20=20=20cron.daily=20functionality.?= =?UTF-8?q?=20Closes:=20#762721=20-=20update=20Source=20to=201.14:=20=20?= =?UTF-8?q?=20-=20Handle=20failure=20to=20commit=20in=20post-install,=20pr?= =?UTF-8?q?e-install=20by=20showing=20a=20=20=20=20=20warning,=20rather=20?= =?UTF-8?q?than=20propigating=20the=20error=20to=20apt.=20=20=20=20=20This?= =?UTF-8?q?=20avoids=20breaking=20the=20apt=20run=20when=20eg,=20git=20is?= =?UTF-8?q?=20misconfigured=20and=20=20=20=20=20cannot=20commit.=20=20=20?= =?UTF-8?q?=20=20pre-install=20already=20did=20this=20when=20it=20was=20ab?= =?UTF-8?q?le=20to=20use=20debconf=20to=20display=20a=20=20=20=20=20messag?= =?UTF-8?q?e,=20but=20now=20debconf=20is=20not=20used,=20and=20it=20always?= =?UTF-8?q?=20behaves=20this=20way.=20=20=20=20=20Closes:=20#760011=20-=20?= =?UTF-8?q?change=20to=20new=20url=20-=20renamed=20to=20etckeeper-rpmlintr?= =?UTF-8?q?c=20from=20etckeeper.rpmlintrc:=20=20=20To=20follow=20the=20pac?= =?UTF-8?q?kaging=20guidelines.=20=20=20Please=20see=20also:=20=20=20https?= =?UTF-8?q?://build.opensuse.org/request/show/244964#request=5Fhistory=20?= =?UTF-8?q?=20=20http://lists.opensuse.org/opensuse-packaging/2007-07/msg0?= =?UTF-8?q?0000.html=20-=20updated=20Source=20to=201.13:=20=20=20+=20Ignor?= =?UTF-8?q?e=20check-mk-agent-logwatch's=20FHS=20violating=20=20=20=20=20/?= =?UTF-8?q?etc/check=5Fmk/logwatch.state.=20Closes:=20deb#753903=20=20=20+?= =?UTF-8?q?=20Only=20allow=20[-a-z=5F]=20in=20etckeeper=20commands=20to=20?= =?UTF-8?q?avoid=20any=20possible=20=20=20=20=20directory=20traversal=20et?= =?UTF-8?q?c=20issues.=20=20=20+=20update-ignore,=20uninit:=20Fix=20parsin?= =?UTF-8?q?g=20of=20ignore=20files=20containing=20'\'=20-=20added=20etckee?= =?UTF-8?q?per-avoid-packagelist.patch:=20=20=20Because=20it=20is=20slow?= =?UTF-8?q?=20that=20some=20package=20manager=20make=20the=20packagelist?= =?UTF-8?q?=20=20=20(eg,=20rpm=20-qa),=20high-level=20package=20manager=20?= =?UTF-8?q?might=20time=20out=20=20=20(eg.=20zypper=20in/remove).=20=20=20?= =?UTF-8?q?So=20I=20added=20this=20patch.=20=20=20If=20you=20think=20that?= =?UTF-8?q?=20the=20packagelist=20is=20unnecessary,=20=20=20set=20AVOID=5F?= =?UTF-8?q?PACKAGELIST=3D1=20in=20etckeeper.conf.=20=20=20Or=20if=20you=20?= =?UTF-8?q?want=20to=20avoid=20it=20temporarily,=20=20=20you=20can=20use?= =?UTF-8?q?=20environment=20variable=20ETCKEEPER=5FAVOID=5FPACKAGELIST=3D1?= =?UTF-8?q?=20.=20=20=20(eg,=20ETCKEEPER=5FAVOID=5FPACKAGELIST=3D1=20zyppe?= =?UTF-8?q?r=20update).=20=20=20This=20patch=20was=20sent=20to=20upstream,?= =?UTF-8?q?=20but=20Joey=20does=20not=20accept=20it=20yet.=20=20=20Please?= =?UTF-8?q?=20see=20also=20gh#joeyh/etckeeper#17=20.=20-=20rename=20subpac?= =?UTF-8?q?kage=20from=20pkgmanager-collabo=20=20=20to=20zypp-plugin=20or?= =?UTF-8?q?=20yum-plugin.=20=20=20please=20see=20also:=20=20=20http://list?= =?UTF-8?q?s.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html?= =?UTF-8?q?=20-=20added=20"Provides:"=20for=20renaming:=20=20=20pkgmanager?= =?UTF-8?q?-collabo=20=3D>=20(zypp|yum)-plugin.=20=20=20Please=20see=20als?= =?UTF-8?q?o:=20=20=20https://en.opensuse.org/openSUSE:Package=5Fdependenc?= =?UTF-8?q?ies#Renaming=5Fa=5Fpackageage=20-=20added=20"Provides:"=20for?= =?UTF-8?q?=20split=20packages:=20etekeeper-cron=20and=20plugins.=20=20=20?= =?UTF-8?q?Please=20see=20also:=20=20=20https://en.opensuse.org/openSUSE:P?= =?UTF-8?q?ackage=5Fdependencies#Splitting=5Foff=5Fa=5Fsub-pack=20-=20adde?= =?UTF-8?q?d=20"Reccomends:=20git".=20=20=20please=20see=20also:=20=20=20h?= =?UTF-8?q?ttp://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00?= =?UTF-8?q?060.html=20-=20added=20bzr=20support=20files.=20=20=20Their=20f?= =?UTF-8?q?iles=20need=20"Buildrequires:=20python-devel=20bzr",=20=20=20bu?= =?UTF-8?q?t=20did=20not=20write=20them,=20so=20they=20were=20not=20instal?= =?UTF-8?q?led=20untill=20now.=20-=20added=20Python=20Compatibility=20with?= =?UTF-8?q?=20older=20distributions=20codes.=20=20=20Please=20see=20also:?= =?UTF-8?q?=20=20=20https://en.opensuse.org/openSUSE:Packaging=5FPython#Co?= =?UTF-8?q?mpatibility=5Fwith=5Folder=5Fdistributions=20-=20added=20versio?= =?UTF-8?q?n-release=20number=20to=20Recommendes=20and=20Requires.=20=20?= =?UTF-8?q?=20It=20is=20desirable=20that=20etckeeper=20packages=20are=20sa?= =?UTF-8?q?me=20version.=20-=20removed=20lib/zypp=20directories:=20=20=20T?= =?UTF-8?q?hey=20should=20belong=20libzypp.=20=20=20+=20remove=20them.=20?= =?UTF-8?q?=20=20+=20added=20"BuildRequire:=20zypp-plugin-python".=20-=20m?= =?UTF-8?q?odified=20etckeeper.spec=20style=20=20=20by=20"osc=20service=20?= =?UTF-8?q?run=20format=5Fspec=5Ffile".=20-=20removed=20lint=20code=20'rm?= =?UTF-8?q?=20-rf=20"%{buildroot}%{=5Fprefix}/lib"/python*'.=20=20=20This?= =?UTF-8?q?=20line=20does=20not=20work.=20-=20removed=20"Requires:=20git".?= =?UTF-8?q?=20=20=20users=20can=20select=20VCS.=20-=20divide=20etckeeper?= =?UTF-8?q?=20package=20into=203.=20=20=20+=20etckeeper:=20=20=20=20=20mai?= =?UTF-8?q?n=20function.=20=20=20+=20etckeeper-cron:=20=20=20=20=20cron=20?= =?UTF-8?q?function.=20=20=20+=20etckeeper-pkgmanager-collabo:=20=20=20=20?= =?UTF-8?q?=20collaboration=20with=20package=20manager.=20-=20fix=20(bnc#8?= =?UTF-8?q?84154):=20forgot=20to=20reqire=20zypp-plugin-python.=20-=20fix?= =?UTF-8?q?=20(bnc#884154).=20=20change=20permission=20and=20locale.=20=20?= =?UTF-8?q?=20+=20added=20etckeeper-zypp.patch=20=20=20=20=201)=20changed?= =?UTF-8?q?=20zypper-etckeeper.py=20's=20permission=20from=20644=20to=2075?= =?UTF-8?q?5=20=20=20=20=20=20=20(in=20Makefile).=20=20=20=20=202)=20in=20?= =?UTF-8?q?zypper-etckeeper.py=20set=20LANG=20to=20C.=20=20=20please=20see?= =?UTF-8?q?=20also:=20=20=20http://lists.opensuse.org/archive/opensuse-fac?= =?UTF-8?q?tory/2014-06/msg00090.html=20-=20version=20up=20to=201.12=20fro?= =?UTF-8?q?m=201.7=20=20=20+=20README's=20filename=20changed=20from=20READ?= =?UTF-8?q?ME=20to=20README.md.=20=20=20+=20fix=20some=20bugs.=20=20=20+?= =?UTF-8?q?=20fix=20some=20typos.=20=20=20for=20detail,=20=20=20please=20d?= =?UTF-8?q?o=20"git=20clone=20git://git.kitenet.net/etckeeper.git"=20=20?= =?UTF-8?q?=20and=20"git=20log".=20-=20don't=20require=20git=20to=20build?= =?UTF-8?q?=20-=20relax=20git=20version=20requirement=20-=20initial=20vers?= =?UTF-8?q?ion=20(1.7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=32 --- .gitattributes | 23 ++ .gitignore | 1 + etckeeper-1.18.18.tar.gz | 3 + etckeeper-1.18.21.tar.gz | 3 + etckeeper-avoid-packagelist.patch | 90 +++++++ etckeeper-set-package-manager.patch | 18 ++ etckeeper.changes | 369 ++++++++++++++++++++++++++++ etckeeper.spec | 211 ++++++++++++++++ 8 files changed, 718 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 etckeeper-1.18.18.tar.gz create mode 100644 etckeeper-1.18.21.tar.gz create mode 100644 etckeeper-avoid-packagelist.patch create mode 100644 etckeeper-set-package-manager.patch create mode 100644 etckeeper.changes create mode 100644 etckeeper.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/etckeeper-1.18.18.tar.gz b/etckeeper-1.18.18.tar.gz new file mode 100644 index 0000000..116f71a --- /dev/null +++ b/etckeeper-1.18.18.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:390c82d1fcfaf4cac5a3ca6fffb16fea0e1ada31a1bfe20220ac3b317d663f61 +size 101845 diff --git a/etckeeper-1.18.21.tar.gz b/etckeeper-1.18.21.tar.gz new file mode 100644 index 0000000..224b993 --- /dev/null +++ b/etckeeper-1.18.21.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a87c5e9c847c29f761da933c1cd907779545c7ddf92fb75de8ef692b90fc9e5d +size 116961 diff --git a/etckeeper-avoid-packagelist.patch b/etckeeper-avoid-packagelist.patch new file mode 100644 index 0000000..bd51bef --- /dev/null +++ b/etckeeper-avoid-packagelist.patch @@ -0,0 +1,90 @@ +From: Mitsutoshi NAKANO +Date: 2014-07-20 04:15:00 +0900 +Subject: add: AVOID_PACKAGELIST & ETCKEEPER_AVOID_PACKAGELIST +References: gh#joeyh/etckeeper#17 +Upstream: sent (but not accept yet) + +Because it is slow that some package manager make the packagelist +(eg, rpm -qa), high-level package manager might time out +(eg. zypper in/remove). +If you think that the packagelist is unnecessary, set AVOID_PACKAGELIST=1 +in etckeeper.conf. +Or if you want to avoid it temporarily, +you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . +(eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). + + +Index: etckeeper-1.18.5/etckeeper +=================================================================== +--- etckeeper-1.18.5.orig/etckeeper ++++ etckeeper-1.18.5/etckeeper +@@ -126,6 +126,13 @@ + export VCS + + if command -v perl >/dev/null; then ++ #If environment variable ETCKEEPER_AVOID_PACKAGELIST is not null, ++ # AVOID_PACKAGELIST in etckeeper.conf is overridden here. ++ if [ -n "$ETCKEEPER_AVOID_PACKAGELIST" ]; then ++ AVOID_PACKAGELIST="$ETCKEEPER_AVOID_PACKAGELIST" ++ fi ++ export AVOID_PACKAGELIST ++ + lsscripts() { + LANG=C perl -e ' + $dir=shift; +Index: etckeeper-1.18.5/etckeeper.8 +=================================================================== +--- etckeeper-1.18.5.orig/etckeeper.8 ++++ etckeeper-1.18.5/etckeeper.8 +@@ -65,7 +65,19 @@ prompting.) + /etc/etckeeper also contains directories containing the programs that are + run for each of the above commands. + .SH ENVIRONMENT VARIABLES +-ETCKEEPER_CONF_DIR path to configuration directory instead of default /etc/etckeeper. ++ETCKEEPER_CONF_DIR path to configuration directory instead of default ++/etc/etckeeper. ++.PP ++ETCKEEPER_AVOID_PACKAGELIST: ++Because it is slow that some package manager make the packagelist ++(eg, rpm -qa), high-level package manager might time out. ++If you think that the packagelist is unnecessary, ++set AVOID_PACKAGELIST=1. in etckeeper.conf ++Or if you want to avoid it temporarily, ++you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . ++(eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update) ++AVOID_PACKAGELIST=1 ++ + .SH SEE ALSO + /usr/share/doc/etckeeper/README.md.gz + .SH AUTHOR +Index: etckeeper-1.18.5/etckeeper.conf +=================================================================== +--- etckeeper-1.18.5.orig/etckeeper.conf ++++ etckeeper-1.18.5/etckeeper.conf +@@ -43,3 +43,12 @@ LOWLEVEL_PACKAGE_MANAGER=dpkg + # (eg, "origin" for git). Space-separated lists of multiple remotes + # also work (eg, "origin gitlab github" for git). + PUSH_REMOTE="" ++ ++# Because it is slow that some package manager make the packagelist ++# (eg, rpm -qa), high-level package manager might time out. ++# If you think that the packagelist is unnecessary, ++# set AVOID_PACKAGELIST=1. ++# Or if you want to avoid it temporarily, ++# you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . ++# (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update) ++#AVOID_PACKAGELIST=1 +Index: etckeeper-1.18.5/pre-install.d/10packagelist +=================================================================== +--- etckeeper-1.18.5.orig/pre-install.d/10packagelist ++++ etckeeper-1.18.5/pre-install.d/10packagelist +@@ -1,4 +1,9 @@ + #!/bin/sh ++ ++if [ "$AVOID_PACKAGELIST" = "1" ]; then ++ exit 0 ++fi ++ + # This list will be later used when committing. + mkdir -p /var/cache/etckeeper/ + etckeeper list-installed > /var/cache/etckeeper/packagelist.pre-install diff --git a/etckeeper-set-package-manager.patch b/etckeeper-set-package-manager.patch new file mode 100644 index 0000000..b464b1f --- /dev/null +++ b/etckeeper-set-package-manager.patch @@ -0,0 +1,18 @@ +Index: etckeeper-1.18.21/etckeeper.conf +=================================================================== +--- etckeeper-1.18.21.orig/etckeeper.conf ++++ etckeeper-1.18.21/etckeeper.conf +@@ -33,11 +33,11 @@ DARCS_COMMIT_OPTIONS="-a" + + # The high-level package manager that's being used. + # (apt, pacman, pacman-g2, yum, dnf, zypper, apk, xbps, emerge, cave, etc) +-HIGHLEVEL_PACKAGE_MANAGER=apt ++HIGHLEVEL_PACKAGE_MANAGER=zypper + + # The low-level package manager that's being used. + # (dpkg, rpm, pacman, pacmatic, pacman-g2, apk, xbps, cave, qlist, etc) +-LOWLEVEL_PACKAGE_MANAGER=dpkg ++LOWLEVEL_PACKAGE_MANAGER=rpm + + # To push each commit to a remote, put the name of the remote here. + # (eg, "origin" for git). Space-separated lists of multiple remotes diff --git a/etckeeper.changes b/etckeeper.changes new file mode 100644 index 0000000..5b6d41a --- /dev/null +++ b/etckeeper.changes @@ -0,0 +1,369 @@ +------------------------------------------------------------------- +Thu Aug 8 11:16:35 UTC 2024 - ecsos + +- Update to 1.18.21 + - Consistently use mktemp if available, falling back to tempfile + otherwise. +- Changes from 1.18.20 + - Fix a reversion in etckeeper init in version 1.18.19. +- Changes from 1.18.19 + - Added support for Gentoo (emerge, qlist, and cave) + - Skip running pre-commit hook inside linked worktrees, + to avoid it updating .etckeeper with the permissions of + files not in /etc. + - commit: Run bzr with --quiet, since it outputs non-errors to + stderr. Closes: #1018874 +- Rebase etckeeper-set-package-manager.patch + +------------------------------------------------------------------- +Wed Feb 21 15:42:14 UTC 2024 - Michael Vetter + +- Use %autosetup macro. Allows to eliminate the usage of deprecated + %patchN. + +------------------------------------------------------------------- +Thu Nov 17 13:52:20 UTC 2022 - Dominique Leuenberger + +- Do not have the main package recommend the bash-completion + sub-package, but rather have the subpackage supplement the + combination of etckeeper and bash-completion. + +------------------------------------------------------------------- +Mon Sep 26 02:32:00 UTC 2022 - André Werlang + +- Update to 1.18.18: + * Replace deprecated egrep with grep -E. + * Added support for Void Linux's xbps package manager. +- Update to 1.18.17: + * Fix committing of files with spaces in name when perl is not available. + * Ignore udev's FHS violating large binary cache file /etc/udev/hwdb.bin + * Avoid warning messages from grep about binary files when there are + filenames in /etc that do not correspond to the current locale settings. +- Update to 1.18.16: + * Improve sorting stability. + * Prefer mktemp over tempfile as the latter displays a deprecation + warning since debianutils 4.10. +- Update to 1.18.15: + * Use "command -v" rather than "which" to detect installed programs, + as it is more portable. + * Improve commit messages generated by package manager changes, + listing packages that are responsible for the changed config files. + * If gc.auto is not configured, override the default to make it gc + ten times more frequently, to avoid wasting space with loose objects. + * update-ignore: Preserve permissions from any preexisting VCS ignore file. + * Removed the debian directory from the upstream source package as it's + not being maintained; see the debian package for an up-to-date one. + * debian/changelog moved to CHANGELOG and debian/copyright to COPYRIGHT. +- Rebase patches: + * etckeeper-avoid-packagelist.patch + * etckeeper-set-package-manager.patch + +------------------------------------------------------------------- +Wed Feb 12 09:28:21 UTC 2020 - Paolo Stivanin + +- Fix spec file + +------------------------------------------------------------------- +Tue Feb 4 07:37:47 UTC 2020 - Paolo Stivanin + +- Update to 1.18.14: + * pacman 5.2 deprecated File hooks, use Path. + Thanks, Christian Hesse + * Fix vcs subcommand setup for zsh completion. + Thanks, James Rowe. + * Added zsh completion. + Thanks, James Rowe + * commit: Recent changes added code that does not work on all POSIX shells. + Fixed by Thorsten Glaser. + * Fix bug in hostname determination in the previous release. + Thanks, Christian Hesse + * Support platforms without a hostname command, fall back to + reading /etc/hostname. + Thanks, Chris Morgan + * commit: Support -mmessage, without a space, since eg git commit + can be used that way. + Thanks, martin f. krafft + * commit: When multiple parameters are given, use them all as the commit + message, instead of the old behavior of only using the first parameter and + throwing the rest away. + Thanks, martin f. krafft + * Avoid post-install failing when ps is from busybox or another + version not supporting procps-specific options. + * Use ps --no-headers rather than problimatic -h option. + * When run during a package installation, include in the commit + message the command line that caused etckeeper to run. + Thanks, Laszlo Gombos + +------------------------------------------------------------------- +Tue Oct 2 09:38:10 UTC 2018 - Jan Engelhardt + +- Remove idempotent %if..%endif guards. +- Fix incorrect trailing slash in make install line. +- Update RPM group for bash-completion. + +------------------------------------------------------------------- +Sun Sep 30 07:09:48 UTC 2018 - bkbin005@rinku.zaq.ne.jp + +- indicated that subpackages are noarch. +- modified the description longer. + +------------------------------------------------------------------- +Thu Sep 13 07:34:35 UTC 2018 - Marcus Rueckert + +- obsolete cron sub package on systemd machines + +------------------------------------------------------------------- +Thu Sep 13 07:29:24 UTC 2018 - Marcus Rueckert + +- use %license + +------------------------------------------------------------------- +Wed Sep 12 23:31:38 UTC 2018 - Marcus Rueckert + +- dropped non suse support + - added etckeeper-set-package-manager.patch: set the package + manager via a patch now that we only care about suse +- bzr support: + - disable for now as it would force the whole package to be + python2 bound. you can reenable it when building with + --with=bzr or set the options in your prjconf: + %define _with_bzr 1 + Macros: + %_with_bzr 1 + :Macros + - change bzr support to be in a subpackage if enabled +- build with python3 when not building with bzr support + - patch shebang line in the zypper plugin to match that +- build the whole package as noarch if we don't build with python + as we are just packaging a bunch of shell scripts +- move bash completion to a sub package, which is recommended to + keep the default working, BR and Require the bash-completion + package for path ownership +- downgrade to git-core so we only have the minimal git for small + installs on servers +- no longer build the cron support on systemd machines. the systemd + timer is more powerful and should be used instead. +- when uninstalling we should also disable and stop the systemd + timer +- only ship the documentation files that are also shipped in the + debian package + +------------------------------------------------------------------- +Tue Sep 11 07:34:30 UTC 2018 - ecsos@opensuse.org + +- update to 1.18.8: + * Work around git commit's lack of robustness, by providing + reasonable default values for GIT_COMMITTER_EMAIL etc. + This was already done as part of the su/sudo handling, + and is now always done. + * Don't hardcode the master branch when pushing to PUSH_REMOTE. + Instead, let git push whatever branches it is configured to + push to that remote. +- Drop 0001-Remove-env-from-shebang-in-zypper-plugin.patch because + now in upstream. + +------------------------------------------------------------------- +Wed Oct 18 07:35:13 UTC 2017 - aavindraa@gmail.com + +- update to 1.18.7: + * Will work on systems that don't have perl. (Perl is still used + when available). + * Prevent LC_ALL overriding the LC_COLLATE used to sort metadata. +- includes changes from 1.18.6: + * Only show errors (no progress indicators) when pushing + Git/Mercurial repos to avoid unecessary cron mails. + * Fix regex in 20-warn-problem-files. + * Support added for apk (alpine linux) +- Lint spec file +- Point source URL to upstream tarball +- Mark dependency on python-base per rpmlint +- Patches / source modifications: + * Add 0001-Remove-env-from-shebang-in-zypper-plugin.patch + - fixes rpmlint warning about dependency detection + * Rebase etckeeeper-avoid-packagelist.patch + * Remove junk file caught by rpmlint (.mdwn) + +------------------------------------------------------------------- +Sat Oct 22 17:39:27 UTC 2016 - jengelh@inai.de + +- Remove redundant sections + +------------------------------------------------------------------- +Sat Oct 15 09:34:41 UTC 2016 - ecsos@opensuse.org + +- update Source to 1.18.5: + - Make etckeeper commit store metadata changes. The pre-commit + hook has always (and continues) to do that, but pre-commit is + only run when there are changes to tommit. This makes + metadata-only changes get committed. + - Move systemd files to /lib/systemd; /usr/lib/systemd is not + used on Debian. +- fix wrong path for systemd in rpm based distros with sed in spec + +------------------------------------------------------------------- +Sun Jul 3 10:09:23 UTC 2016 - ecsos@opensuse.org + +- update Source to 1.18.4: + - Optimised find for special and hard linked files. + - Adjust when Pacman 5 calls etckeeper hooks. + - Only run Pacman hooks when files in /etc have changed. + - Added systemd timer that can run etckeeper 10 minutes after boot, and also + daily. It's not enabled by default, partly because of overlap with the + cron job. +- update Source to 1.18.3: + - Added support for pacmatic, contributed by nicolaichuk. + - bzr: make sure EMAIL is defined + - Fix Makefile version patterns to ignore non-native version number + - Support ~/.config/git/config when determining the author name and email. + - Added support for Arch's pacman package manager version 5. + - Set HOME if it's not set, as is the case when using ubuntu's + update-manager. + - Move bash completion out of etc and into usr. +- update Source to 1.18.2: + - Use getent utility instead of perl. (Elan Ruusamäe) + - Initial FreeBSD support with pkgng plugin. (William Johansson) + - Fix README.md symlink in package (Sebastian Schmidt, Antoine Beaupré, + closes: #791566) + - Fix typo of GIT_COMMITTER_EMAIL. +- update Source to 1.18.1 + - Add myself as maintainer (Closes: #768516) + - Keeping the package native as I do not intend to diverge from + upstream. + - Update git URL in control file. +- update to Sourcce to 1.18: + - Send yum pre-commit output to /dev/null + - Set LANG=C internally when doing some operations that have + been reported to fail in other locales. +- update Source to 1.17: + - Fix name of DNF plugin. + - Add --version + Thanks Andreas Wansner. + - New website, http://etckeeper.branchable.com/ + - Add build-depends on dh-python. +- update Source to 1.16: + - Added support for Fedora's DNF highlevel package manager. + - Add architecture info to dpkg list-installed. Closes: #768145 + - Orphaned the Debian package. +- rebase patch etckeeper-avoid-packagelist.patch +- change source url to github +- remove unnecessary file etckeeper-rpmlintrc + +------------------------------------------------------------------- +Fri Jun 3 09:05:31 UTC 2016 - ecsos@opensuse.org + +- update Source to 1.15: + - Recommend cron-daemon, rather than cron, as etckeeper only needs + cron.daily functionality. Closes: #762721 +- update Source to 1.14: + - Handle failure to commit in post-install, pre-install by showing a + warning, rather than propigating the error to apt. + This avoids breaking the apt run when eg, git is misconfigured and + cannot commit. + pre-install already did this when it was able to use debconf to display a + message, but now debconf is not used, and it always behaves this way. + Closes: #760011 +- change to new url + +------------------------------------------------------------------- +Mon Aug 18 11:55:42 UTC 2014 - bkbin005@rinku.zaq.ne.jp + +- renamed to etckeeper-rpmlintrc from etckeeper.rpmlintrc: + To follow the packaging guidelines. + Please see also: + https://build.opensuse.org/request/show/244964#request_history + http://lists.opensuse.org/opensuse-packaging/2007-07/msg00000.html + +------------------------------------------------------------------- +Fri Aug 15 22:15:20 UTC 2014 - bkbin005@rinku.zaq.ne.jp + +- updated Source to 1.13: + + Ignore check-mk-agent-logwatch's FHS violating + /etc/check_mk/logwatch.state. Closes: deb#753903 + + Only allow [-a-z_] in etckeeper commands to avoid any possible + directory traversal etc issues. + + update-ignore, uninit: Fix parsing of ignore files containing '\' +- added etckeeper-avoid-packagelist.patch: + Because it is slow that some package manager make the packagelist + (eg, rpm -qa), high-level package manager might time out + (eg. zypper in/remove). + So I added this patch. + If you think that the packagelist is unnecessary, + set AVOID_PACKAGELIST=1 in etckeeper.conf. + Or if you want to avoid it temporarily, + you can use environment variable ETCKEEPER_AVOID_PACKAGELIST=1 . + (eg, ETCKEEPER_AVOID_PACKAGELIST=1 zypper update). + This patch was sent to upstream, but Joey does not accept it yet. + Please see also gh#joeyh/etckeeper#17 . +- rename subpackage from pkgmanager-collabo + to zypp-plugin or yum-plugin. + please see also: + http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html +- added "Provides:" for renaming: + pkgmanager-collabo => (zypp|yum)-plugin. + Please see also: + https://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_packageage +- added "Provides:" for split packages: etekeeper-cron and plugins. + Please see also: + https://en.opensuse.org/openSUSE:Package_dependencies#Splitting_off_a_sub-pack +- added "Reccomends: git". + please see also: + http://lists.opensuse.org/archive/opensuse-factory/2014-07/msg00060.html +- added bzr support files. + Their files need "Buildrequires: python-devel bzr", + but did not write them, so they were not installed untill now. +- added Python Compatibility with older distributions codes. + Please see also: + https://en.opensuse.org/openSUSE:Packaging_Python#Compatibility_with_older_distributions +- added version-release number to Recommendes and Requires. + It is desirable that etckeeper packages are same version. +- removed lib/zypp directories: + They should belong libzypp. + + remove them. + + added "BuildRequire: zypp-plugin-python". + +------------------------------------------------------------------- +Mon Jul 7 21:21:34 UTC 2014 - bkbin005@rinku.zaq.ne.jp + +- modified etckeeper.spec style + by "osc service run format_spec_file". +- removed lint code 'rm -rf "%{buildroot}%{_prefix}/lib"/python*'. + This line does not work. +- removed "Requires: git". + users can select VCS. +- divide etckeeper package into 3. + + etckeeper: + main function. + + etckeeper-cron: + cron function. + + etckeeper-pkgmanager-collabo: + collaboration with package manager. +- fix (bnc#884154): forgot to reqire zypp-plugin-python. + +------------------------------------------------------------------- +Wed Jul 2 20:33:59 UTC 2014 - bkbin005@rinku.zaq.ne.jp + +- fix (bnc#884154). change permission and locale. + + added etckeeper-zypp.patch + 1) changed zypper-etckeeper.py 's permission from 644 to 755 + (in Makefile). + 2) in zypper-etckeeper.py set LANG to C. + please see also: + http://lists.opensuse.org/archive/opensuse-factory/2014-06/msg00090.html +- version up to 1.12 from 1.7 + + README's filename changed from README to README.md. + + fix some bugs. + + fix some typos. + for detail, + please do "git clone git://git.kitenet.net/etckeeper.git" + and "git log". + +------------------------------------------------------------------- +Wed Aug 21 16:59:59 UTC 2013 - dvaleev@suse.com + +- don't require git to build +- relax git version requirement + +------------------------------------------------------------------- +Sat Aug 10 10:33:54 CET 2013 - pascal.bleser@opensuse.org + +- initial version (1.7) diff --git a/etckeeper.spec b/etckeeper.spec new file mode 100644 index 0000000..f92e5f7 --- /dev/null +++ b/etckeeper.spec @@ -0,0 +1,211 @@ +# vim: set sw=4 ts=4 et nu: +# +# spec file for package etckeeper +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2014 Mitsutoshi NAKANO +# Copyright (c) 2013 Pascal Bleser +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# this would pull python2 +%bcond_with bzr +%bcond_without systemd + +%if %{with bzr} +%define python_versioned python +%define python_args PYTHON_INSTALL_OPTS="--prefix=%{_prefix} --install-purelib=%{python_sitearch}" +%else +%define python_versioned python3 +%define python_args %{nil} +%endif + +%define make_args systemddir=%{_unitdir} PYTHON=%{python_versioned} %{python_args} + +Name: etckeeper +Version: 1.18.21 +Release: 0 +Summary: Store /etc under Version Control +License: GPL-2.0-or-later +Group: System/Management +Source: https://git.joeyh.name/index.cgi/etckeeper.git/snapshot/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM etckeeper-avoid-packagelist.patch gh#joeyh/etckeeper#17 bkbin005@rinku.zaq.ne.jp -- add AVOID_PACKAGELIST +Patch0: etckeeper-avoid-packagelist.patch +Patch1: etckeeper-set-package-manager.patch +URL: http://etckeeper.branchable.com/ +%if ! %{with bzr} +BuildArch: noarch +%endif +BuildRequires: %{python_versioned}-devel +%if 0%{suse_version} >= 1500 +BuildRequires: bash-completion-devel +%else +BuildRequires: bash-completion +%endif +BuildRequires: make +# for the path ownership +BuildRequires: %{python_versioned}-zypp-plugin +BuildRequires: libzypp +BuildRequires: systemd-rpm-macros +%if %{with bzr} +BuildRequires: bzr +%endif + +Recommends: %{name}-zypp-plugin = %{version}-%{release} +Recommends: git-core +%if %{with bzr} +Recommends: %{name}-bzr = %{version}-%{release} +%endif +%if %{with systemd} +%{?systemd_requires} +Obsoletes: %{name}-cron = %{version}-%{release} +%else +Recommends: %{name}-cron = %{version}-%{release} +%endif + +%description +The etckeeper program is a tool to let /etc be stored in a git, +mercurial, bzr or darcs repository. It hooks into yum to automatically +commit changes made to /etc during package upgrades. It tracks file +metadata that version control systems do not normally support, but that +is important for /etc, such as the permissions of /etc/shadow. It is +quite modular and configurable, while also being simple to use if you +understand the basics of working with version control. + +%package cron +Summary: The etckeeper cron function +Group: System/Management +%if ! %{with bzr} +BuildArch: noarch +%endif +Requires: etckeeper = %{version}-%{release} +Provides: etckeeper:%{_sysconfdir}/cron.daily/etckeeper +Requires: cron + +%description cron +The etckeeper-cron calls etckeeper from cron. + +%package zypp-plugin +Summary: The etckeeper integration function with ZYpp +Group: System/Management +%if ! %{with bzr} +BuildArch: noarch +%endif +Requires: %{python_versioned}-zypp-plugin +Requires: etckeeper = %{version}-%{release} +Obsoletes: etckeeper-pkgmanager-collabo < %{version}-%{release} +Provides: etckeeper-pkgmanager-collabo = %{version}-%{release} +Provides: etckeeper:%{_prefix}/lib/zypp/plugins/commit/zypper-etckeeper.py + +%description zypp-plugin +The etckeeper-zypp-plugin calls etckeeper from ZYpp. + +%package bzr +Summary: The etckeeper integration function with bzr +Group: System/Management +Requires: %{python_versioned}-base +Requires: etckeeper = %{version}-%{release} + +%description bzr +The etckeeper integration function with bzr + +%package bash-completion +Summary: The bash completion for etckeeper +Group: System/Shells +Requires: bash-completion +Requires: etckeeper = %{version}-%{release} +Supplements: (%{name} and bash-completion) + +%description bash-completion +Bash command line completion support for %{name}. + +%package zsh-completion +Summary: The zsh completion for etckeeper +Group: System/Shells +Requires: etckeeper = %{version}-%{release} + +%description zsh-completion +zsh command line completion support for %{name}. + +%prep +%autosetup -p1 + +%build +find -type f -name ".gitignore" -delete +rm -f ./doc/todo/.mdwn +rm README.md +cp -a doc/README.mdwn README.md +perl -p -i -e 's|%{_bindir}/python|%{_bindir}/%{python_versioned}|g' zypper-etckeeper.py +make %{?_smp_mflags} %{make_args} + +%install +%make_install %{make_args} +%if ! %{with systemd} +install -D debian/cron.daily "%{buildroot}/etc/cron.daily/%{name}" +%endif + +mkdir %{buildroot}%{_sbindir} +ln -s ../bin/%{name} %{buildroot}%{_sbindir}/%{name} +ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name} + +%pre +%service_add_pre etckeeper.timer etckeeper.service + +%preun +%service_del_preun etckeeper.timer etckeeper.service + +%post +%service_add_post etckeeper.timer etckeeper.service + +%postun +%service_del_postun etckeeper.timer etckeeper.service + +%files +%doc README.md +%license GPL +%{_unitdir}/etckeeper.timer +%{_unitdir}/etckeeper.service +%{_bindir}/etckeeper +%{_sbindir}/etckeeper +%{_sbindir}/rcetckeeper +%dir %{_sysconfdir}/etckeeper +%dir %{_sysconfdir}/etckeeper/*.d +%{_sysconfdir}/etckeeper/daily +%config(noreplace) %{_sysconfdir}/etckeeper/etckeeper.conf +%config %{_sysconfdir}/etckeeper/*.d/* +%{_mandir}/man8/etckeeper.8* + +%if ! %{with systemd} +%files cron +%config(noreplace) %{_sysconfdir}/cron.daily/etckeeper +%endif + +%files bash-completion +%{_datadir}/bash-completion/completions/etckeeper + +%files zsh-completion +%{_datadir}/zsh +%{_datadir}/zsh/vendor-completions +%{_datadir}/zsh/vendor-completions/_etckeeper + +%files zypp-plugin +%{_prefix}/lib/zypp/plugins/commit/zypper-etckeeper.py + +%if %{with bzr} +%files bzr +%{python_sitearch}/bzrlib/plugins/%{name}/ +%{python_sitearch}/bzr_%{name}-*.egg-info +%endif + +%changelog