Commit e38bf5ea authored by Roman Alifanov's avatar Roman Alifanov

1.0-eter1

- initial build
parents
%define _unpackaged_files_terminate_build 1
%define link https://download.etersoft.ru/pub/Etersoft/XimperLinux
%define keyid CC6FE324E5120EAD
Name: ximper-repos
Version: 1.0
Release: eter1
Summary: Ximper Linux GPG-key and repositories
License: GPL-2.0-or-later
Group: System/Configuration/Packaging
Url: https://ximperlinux.ru
BuildArch: noarch
Source: %name-%version.tar
Provides: branding-etersoft-ximper-apt-conf
Requires: apt-conf
Requires: apt-https
Requires: alt-gpgkeys
%description
This package contains just a links to the XimperLinux Repos and public GPG-key.
%prep
%setup
%build
subst "s|@keyid@|%keyid|" usr/lib/rpm/ximper-repo.filetrigger
( echo "rpm [ximper] %link Current/Additives/%_arch addon"
echo "rpm [ximper] %link Current/Additives/noarch addon"
) > etc/apt/sources.list.d/ximper-additives.list
cat etc/apt/sources.list.d/ximper-additives.list
%install
mkdir -p -m0755 %buildroot
mv -f etc usr %buildroot/
chmod 0644 %buildroot/etc/apt/sources.list.d/ximper-additives.list
%post
echo "/usr/lib/alt-gpgkeys/pubring.gpg" |
/usr/lib/rpm/ximper-repo.filetrigger
%files
%dir /etc/ssl/ximper
/etc/ssl/ximper/ximper-signing.gpg
/etc/apt/vendors.list.d/ximper.list
%config(noreplace) /etc/apt/sources.list.d/ximper-additives.list
/usr/lib/rpm/ximper-repo.filetrigger
%changelog
* Thu Nov 28 2024 Roman Alifanov <ximper@altlinux.org> 1.0-eter1
- initial build
simple-key "ximper" {
Fingerprint "431E79E247D3ADA449B9EFB2CC6FE324E5120EAD";
Name "Ximper Linux <ximper@etersoft.ru>";
}
#!/bin/sh -efu
KEYF=/etc/ssl/ximper/ximper-signing.gpg
KEYID=@keyid@
PUBRING=/usr/lib/alt-gpgkeys/pubring.gpg
[ -s $KEYF ] && grep -F -qx $PUBRING || exit 0
gpg --list-packets $PUBRING |grep -F -qs "keyid: $KEYID" ||
gpg --keyring $PUBRING --no-default-keyring --import $KEYF
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment