Репозитории ALT
S: | 1.0-alt9 |
5.1: | 1.0-alt7.M51.1 |
4.1: | 1.0-alt3.M41.1 |
4.0: | 1.0-alt3.1.M40.1 |
Группа :: Базы Данных
Пакет: postgresql-common
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
BuildArch: noarch
%define PGSQL pgsql
Name: postgresql-common
Summary: create postgresql user and groups
Version: 1.0
Release: alt8
License: GPL
Group: Databases
Url: http://sisyphus.ru/ru/srpm/Sisyphus/postgresql-common
Source1: postgresql.monit
Source2: postgresql.control
Source3: postgresql.sysconfig
Requires: monit-base
# Need for groupadd/useradd
PreReq: shadow-utils
%description
%summary
%prep
%build
%install
install -D -m 644 %SOURCE1 %buildroot/etc/monitrc.d/postgresql
install -D -m 755 %SOURCE2 %buildroot/etc/control.d/facilities/postgresql
install -D -m 644 %SOURCE3 %buildroot/etc/sysconfig/postgresql
%pre
exec &>/dev/null
/usr/sbin/groupadd -r psqluser ||:
/usr/sbin/groupadd -r -g 46 postgres \
|| /usr/sbin/groupadd -r postgres \
||:
/usr/sbin/useradd -M -o -r -d %_localstatedir/%PGSQL -s /dev/null \
-c "PostgreSQL Server" -u 46 postgres -g postgres \
|| /usr/sbin/useradd -M -o -r -d %_localstatedir/%PGSQL -s /dev/null \
-c "PostgreSQL Server" postgres -g postgres \
||:
%pre_control
%post
%post_control
%files
%config(noreplace) %_sysconfdir/monitrc.d/postgresql
%config(noreplace) %_sysconfdir/sysconfig/postgresql
%_sysconfdir/control.d/facilities/postgresql
%changelog
…
Полный changelog можно просмотреть здесь
%define PGSQL pgsql
Name: postgresql-common
Summary: create postgresql user and groups
Version: 1.0
Release: alt8
License: GPL
Group: Databases
Url: http://sisyphus.ru/ru/srpm/Sisyphus/postgresql-common
Source1: postgresql.monit
Source2: postgresql.control
Source3: postgresql.sysconfig
Requires: monit-base
# Need for groupadd/useradd
PreReq: shadow-utils
%description
%summary
%prep
%build
%install
install -D -m 644 %SOURCE1 %buildroot/etc/monitrc.d/postgresql
install -D -m 755 %SOURCE2 %buildroot/etc/control.d/facilities/postgresql
install -D -m 644 %SOURCE3 %buildroot/etc/sysconfig/postgresql
%pre
exec &>/dev/null
/usr/sbin/groupadd -r psqluser ||:
/usr/sbin/groupadd -r -g 46 postgres \
|| /usr/sbin/groupadd -r postgres \
||:
/usr/sbin/useradd -M -o -r -d %_localstatedir/%PGSQL -s /dev/null \
-c "PostgreSQL Server" -u 46 postgres -g postgres \
|| /usr/sbin/useradd -M -o -r -d %_localstatedir/%PGSQL -s /dev/null \
-c "PostgreSQL Server" postgres -g postgres \
||:
%pre_control
%post
%post_control
%files
%config(noreplace) %_sysconfdir/monitrc.d/postgresql
%config(noreplace) %_sysconfdir/sysconfig/postgresql
%_sysconfdir/control.d/facilities/postgresql
%changelog
…
Полный changelog можно просмотреть здесь