--- rpms/smeserver-rabbitmq-server/contribs10/smeserver-rabbitmq-server.spec 2022/06/23 04:45:30 1.1 +++ rpms/smeserver-rabbitmq-server/contribs10/smeserver-rabbitmq-server.spec 2022/06/23 04:53:36 1.2 @@ -6,6 +6,7 @@ Summary: Koozali SME Server integration License: GPL URL: http://www.rabbitmq.com/ #Source0: %{name}-%{version}.tar.gz +Source: createlinks BuildArch: noarch BuildRequires: e-smith-devtools Requires: rabbitmq-server @@ -18,17 +19,27 @@ scalable implementation of an AMQP broke %prep -%setup -q - +#%setup -q +rm -rf %{name}-%{version} +mkdir -p %{name}-%{version}/root +cp %SOURCE0 %{name}-%{version} %build perl createlinks +# could be an archive +mkdir -p root/usr/lib/systemd/system/rabbitmq-server.service.d/ +printf "[Install] +WantedBy=sme-server.target" > root/usr/lib/systemd/system/rabbitmq-server.service.d/50-koozali.conf +mkdir -p root/etc/e-smith/db/configuration/defaults/rabbitmq-server +echo "enabled" > root/etc/e-smith/db/configuration/defaults/rabbitmq-server/status +echo "service" > root/etc/e-smith/db/configuration/defaults/rabbitmq-server/type +echo "local" > root/etc/e-smith/db/configuration/defaults/rabbitmq-server/access %install rm -rf %{buildroot} (cd root ; find . -depth -print | cpio -dump %{buildroot}) -genfilelist %{buildroot} > %{name}-%{version}-%{release}-filelist +/sbin/e-smith/genfilelist %{buildroot} > %{name}-%{version}-%{release}-filelist