|
@@ -5,11 +5,16 @@ Summary: Better PostgreSQL management for cPanel hosts
|
|
|
|
|
|
|
|
Group: Plugins
|
|
Group: Plugins
|
|
|
License: Troglodyne
|
|
License: Troglodyne
|
|
|
-URL: https://troglodyne.net/betterpostgres
|
|
|
|
|
|
|
+URL: https://troglodyne.net/better-postgres-for-cpanel
|
|
|
Source0: BetterPostgres4cP-%{version}.tar.gz
|
|
Source0: BetterPostgres4cP-%{version}.tar.gz
|
|
|
|
|
|
|
|
-BuildRequires: make perl
|
|
|
|
|
-Requires: perl
|
|
|
|
|
|
|
+# No real way to tell it what version of cpanel-perl libs it needs,
|
|
|
|
|
+# as each of these are named like cpanel-perl-5xx-Module-Name.
|
|
|
|
|
+# This makes your RPM break every time they upgrade perl.
|
|
|
|
|
+# As such, just require the symlink to the binary and "pray it goes ok"
|
|
|
|
|
+AutoReqProv: no
|
|
|
|
|
+BuildRequires: make
|
|
|
|
|
+Requires: /usr/local/cpanel/3rdparty/bin/perl
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
|
Plugin for more advanced management of PostgreSQL on cPanel systems
|
|
Plugin for more advanced management of PostgreSQL on cPanel systems
|
|
@@ -40,6 +45,14 @@ make install DESTDIR=%{buildroot}
|
|
|
/var/cpanel/apps/troglodyne_api.conf
|
|
/var/cpanel/apps/troglodyne_api.conf
|
|
|
/var/cpanel/apps/better_postgres.conf
|
|
/var/cpanel/apps/better_postgres.conf
|
|
|
|
|
|
|
|
|
|
+%pre
|
|
|
|
|
+/usr/local/cpanel/bin/unregister_appconfig troglodyne_api
|
|
|
|
|
+/usr/local/cpanel/bin/unregister_appconfig better_postgres
|
|
|
|
|
+
|
|
|
|
|
+%post
|
|
|
|
|
+/usr/local/cpanel/bin/register_appconfig /var/cpanel/apps/troglodyne_api.conf
|
|
|
|
|
+/usr/local/cpanel/bin/register_appconfig /var/cpanel/apps/better_postgres.conf
|
|
|
|
|
+
|
|
|
%changelog
|
|
%changelog
|
|
|
* Tue Apr 14 2020 George S. Baugh <george@troglodyne.net> - 1.0.1
|
|
* Tue Apr 14 2020 George S. Baugh <george@troglodyne.net> - 1.0.1
|
|
|
- Initial Release
|
|
- Initial Release
|