basebuilder_pel7ppc64bebuilder0
7 years ago
3 changed files with 277 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||||||
|
# We enable all display managers by default. Since only one can |
||||||
|
# actually be enabled at the same time the one which is installed |
||||||
|
# first wins |
||||||
|
|
||||||
|
enable gdm.service |
||||||
|
enable lightdm.service |
||||||
|
enable slim.service |
||||||
|
enable lxdm.service |
||||||
|
enable sddm.service |
||||||
|
enable kdm.service |
||||||
|
enable xdm.service |
@ -0,0 +1,130 @@ |
|||||||
|
# Also see: |
||||||
|
# https://fedoraproject.org/wiki/Starting_services_by_default |
||||||
|
|
||||||
|
# On Fedora we deviate from some upstream defaults |
||||||
|
disable systemd-timesyncd.service |
||||||
|
disable systemd-networkd.service |
||||||
|
disable systemd-resolved.service |
||||||
|
|
||||||
|
# System stuff |
||||||
|
enable sshd.service |
||||||
|
enable atd.* |
||||||
|
enable crond.* |
||||||
|
enable chronyd.service |
||||||
|
enable NetworkManager.service |
||||||
|
enable NetworkManager-dispatcher.service |
||||||
|
enable ModemManager.service |
||||||
|
enable auditd.service |
||||||
|
enable restorecond.service |
||||||
|
enable bluetooth.* |
||||||
|
enable avahi-daemon.* |
||||||
|
enable cups.* |
||||||
|
|
||||||
|
# The various syslog implementations |
||||||
|
enable rsyslog.* |
||||||
|
enable syslog-ng.* |
||||||
|
enable sysklogd.* |
||||||
|
|
||||||
|
# Network facing |
||||||
|
enable iptables.service |
||||||
|
disable firewalld.service |
||||||
|
enable libvirtd.service |
||||||
|
enable xinetd.service |
||||||
|
enable ladvd.service |
||||||
|
|
||||||
|
# Storage |
||||||
|
enable multipathd.service |
||||||
|
enable libstoragemgmt.service |
||||||
|
enable lvm2-monitor.* |
||||||
|
enable lvm2-lvmetad.* |
||||||
|
enable dm-event.* |
||||||
|
enable dmraid-activation.service |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=855372 |
||||||
|
enable mdmonitor.service |
||||||
|
enable mdmonitor-takeover.service |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=876237 |
||||||
|
enable spice-vdagentd.service |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=885406 |
||||||
|
enable qemu-guest-agent.service |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=928726 |
||||||
|
enable dnf-makecache.timer |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=929403 |
||||||
|
enable initial-setup-graphical.service |
||||||
|
enable initial-setup-text.service |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=957135 |
||||||
|
enable vmtoolsd.service |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=976315 |
||||||
|
enable dkms.service |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=961878 |
||||||
|
enable ipmi.service |
||||||
|
enable ipmievd.service |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1039351 |
||||||
|
enable x509watch.timer |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1060754 |
||||||
|
enable dnssec-triggerd.service |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1095353 |
||||||
|
enable uuidd.socket |
||||||
|
|
||||||
|
# Hardware |
||||||
|
enable gpm.* |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1066421 |
||||||
|
enable gpsd.socket |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1141607 |
||||||
|
enable x2gocleansessions.service |
||||||
|
|
||||||
|
# https://fedoraproject.org/wiki/Changes/UEFISecureBootBlacklistUpdates |
||||||
|
# |
||||||
|
enable dbxtool.service |
||||||
|
|
||||||
|
enable irqbalance.service |
||||||
|
enable lm_sensors.service |
||||||
|
enable mcelog.* |
||||||
|
enable acpid.* |
||||||
|
enable smartd.service |
||||||
|
enable pcscd.socket |
||||||
|
enable rngd.service |
||||||
|
|
||||||
|
# Other stuff |
||||||
|
enable abrtd.service |
||||||
|
enable abrt-ccpp.service |
||||||
|
enable abrt-oops.service |
||||||
|
enable abrt-xorg.service |
||||||
|
enable abrt-vmcore.service |
||||||
|
enable lttng-sessiond.service |
||||||
|
enable ksm.service |
||||||
|
enable ksmtuned.service |
||||||
|
enable rootfs-resize.service |
||||||
|
enable sysstat.service |
||||||
|
enable sysstat-collect.timer |
||||||
|
enable sysstat-summary.timer |
||||||
|
enable uuidd.service |
||||||
|
enable xendomains.service |
||||||
|
enable xenstored.service |
||||||
|
enable xenconsoled.service |
||||||
|
|
||||||
|
# Desktop stuff |
||||||
|
enable accounts-daemon.service |
||||||
|
enable rtkit-daemon.service |
||||||
|
enable upower.service |
||||||
|
enable udisks2.service |
||||||
|
enable polkit.service |
||||||
|
enable packagekit-offline-update.service |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1187072 |
||||||
|
enable timedatex.service |
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1215641 |
||||||
|
enable unbound-anchor.timer |
@ -0,0 +1,136 @@ |
|||||||
|
Name: powerel-release |
||||||
|
Version: 7 |
||||||
|
Release: 1%{?dist} |
||||||
|
Summary: PowerEL release file |
||||||
|
Group: System Environment/Base |
||||||
|
License: GPLv2 |
||||||
|
Provides: powerel-release = %{version}-%{release} |
||||||
|
Provides: centos-release(upstream) = %{upstream_rel} |
||||||
|
Provides: redhat-release = %{upstream_rel} |
||||||
|
Provides: system-release = %{upstream_rel} |
||||||
|
Provides: system-release(releasever) = %{base_release_version} |
||||||
|
Obsoletes: rawhide-release |
||||||
|
Obsoletes: redhat-release-as |
||||||
|
Obsoletes: redhat-release-es |
||||||
|
Obsoletes: redhat-release-ws |
||||||
|
Obsoletes: redhat-release-de |
||||||
|
Obsoletes: redhat-release-client |
||||||
|
Obsoletes: redhat-release-computenode |
||||||
|
Obsoletes: redhat-release-webserver |
||||||
|
Obsoletes: redhat-release-workstation |
||||||
|
Obsoletes: comps |
||||||
|
Obsoletes: rpmdb-redhat |
||||||
|
Obsoletes: fedora-release |
||||||
|
Obsoletes: tao-release |
||||||
|
Obsoletes: whitebox-release |
||||||
|
Obsoletes: oracle-release |
||||||
|
Obsoletes: sl-release |
||||||
|
Obsoletes: centos-release |
||||||
|
Source0: %{name}-%{version}.tar.gz |
||||||
|
Source1: 85-display-manager.preset |
||||||
|
Source2: 90-default.preset |
||||||
|
|
||||||
|
|
||||||
|
%description |
||||||
|
PowerEL release and information files |
||||||
|
|
||||||
|
|
||||||
|
%prep |
||||||
|
%setup -q -n %{name}-%{version} |
||||||
|
|
||||||
|
|
||||||
|
%build |
||||||
|
echo OK |
||||||
|
|
||||||
|
|
||||||
|
%install |
||||||
|
rm -rf %{buildroot} |
||||||
|
mkdir -p %{buildroot}/etc |
||||||
|
echo "PowerEL release %{version}" > %{buildroot}/etc/%{name} |
||||||
|
ln -s %{name} %{buildroot}/etc/system-release |
||||||
|
# create /etc/os-release |
||||||
|
cat << EOF >>%{buildroot}/etc/os-release |
||||||
|
NAME="PowerEL" |
||||||
|
VERSION="%{version}" |
||||||
|
ID="pel" |
||||||
|
ID_LIKE="rhel fedora" |
||||||
|
VERSION_ID="%{version}" |
||||||
|
PRETTY_NAME="PowerEL %{version}" |
||||||
|
ANSI_COLOR="0;33" |
||||||
|
CPE_NAME="cpe:/o:powerel:powerel:7:ppcbe" |
||||||
|
HOME_URL="https://www.powerel.org/" |
||||||
|
BUG_REPORT_URL="https://bugzilla.powerel.org/" |
||||||
|
|
||||||
|
POWEREL_BUGZILLA_PRODUCT="PowerEL %{version} %{arch}" |
||||||
|
POWEREL_BUGZILLA_PRODUCT_VERSION=%{version} |
||||||
|
POWEREL_SUPPORT_PRODUCT="PowerEL %{version} %{arch}" |
||||||
|
POWEREL_SUPPORT_PRODUCT_VERSION="%{version}" |
||||||
|
|
||||||
|
EOF |
||||||
|
# write cpe to /etc/system/release-cpe |
||||||
|
echo "cpe:/o:powerel:powerel:7" > %{buildroot}/etc/system-release-cpe |
||||||
|
# create /etc/issue and /etc/issue.net |
||||||
|
echo '\S' > %{buildroot}/etc/issue |
||||||
|
echo 'Kernel \r on an \m' >> %{buildroot}/etc/issue |
||||||
|
cp %{buildroot}/etc/issue %{buildroot}/etc/issue.net |
||||||
|
echo >> %{buildroot}/etc/issue |
||||||
|
# copy GPG keys |
||||||
|
mkdir -p -m 755 %{buildroot}/etc/pki/rpm-gpg |
||||||
|
for file in RPM-GPG-KEY* ; do |
||||||
|
install -m 644 $file %{buildroot}/etc/pki/rpm-gpg |
||||||
|
done |
||||||
|
# copy yum repos |
||||||
|
mkdir -p -m 755 %{buildroot}/etc/yum.repos.d |
||||||
|
for file in PowerEL-*.repo; do |
||||||
|
install -m 644 $file %{buildroot}/etc/yum.repos.d |
||||||
|
done |
||||||
|
# set up the dist tag macros |
||||||
|
install -d -m 755 %{buildroot}/etc/rpm |
||||||
|
cat >> %{buildroot}/etc/rpm/macros.dist << EOF |
||||||
|
# dist macros. |
||||||
|
|
||||||
|
%%pel 7 |
||||||
|
%%powerel 7 |
||||||
|
%%rhel 7 |
||||||
|
%%centos 7 |
||||||
|
%%dist pel7 |
||||||
|
%%pel7 1 |
||||||
|
%%el7 1 |
||||||
|
%%centos7 1 |
||||||
|
%%rhel7 1 |
||||||
|
%%ol7 1 |
||||||
|
EOF |
||||||
|
# use unbranded datadir |
||||||
|
mkdir -p -m 755 %{buildroot}/%{_datadir}/powerel-release |
||||||
|
install -m 644 EULA %{buildroot}/%{_datadir}/powerel-release |
||||||
|
# use unbranded docdir |
||||||
|
mkdir -p -m 755 %{buildroot}/%{_docdir}/powerel-release |
||||||
|
install -m 644 GPL %{buildroot}/%{_docdir}/powerel-release |
||||||
|
install -m 644 Contributors %{buildroot}/%{_docdir}/powerel-release |
||||||
|
# copy systemd presets |
||||||
|
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system-preset/ |
||||||
|
install -m 0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/systemd/system-preset/ |
||||||
|
install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/systemd/system-preset/ |
||||||
|
|
||||||
|
|
||||||
|
%clean |
||||||
|
rm -rf %{buildroot} |
||||||
|
|
||||||
|
|
||||||
|
%files |
||||||
|
%defattr(0644,root,root,0755) |
||||||
|
/etc/powerel-release |
||||||
|
/etc/system-release |
||||||
|
%config /etc/system-release-cpe |
||||||
|
%config(noreplace) /etc/os-release |
||||||
|
%config(noreplace) /etc/issue |
||||||
|
%config(noreplace) /etc/issue.net |
||||||
|
/etc/pki/rpm-gpg/ |
||||||
|
%config(noreplace) /etc/yum.repos.d/* |
||||||
|
/etc/rpm/macros.dist |
||||||
|
%{_docdir}/powerel-release/* |
||||||
|
%{_datadir}/powerel-release/* |
||||||
|
%{_prefix}/lib/systemd/system-preset/* |
||||||
|
|
||||||
|
|
||||||
|
%changelog |
Loading…
Reference in new issue