Commit 22282b4e authored by Anastasia Karachaliou's avatar Anastasia Karachaliou
Browse files

WIP for cta-acsd rpm

parent 1002a364
......@@ -60,6 +60,33 @@ cta_rpm:
tags:
- docker
cta_rpm:
except:
- tags
stage: build:rpm
retry: 1
image: gitlab-registry.cern.ch/linuxsupport/cc7-base
script:
- cp -f continuousintegration/docker/ctafrontend/cc7/etc/yum.repos.d/*.repo /etc/yum.repos.d/
- yum install -y gcc-c++ cmake make rpm-build
- yum -y install yum-plugin-priorities yum-plugin-versionlock
- yum install -y git
- git submodule update --init --recursive
- cp -f continuousintegration/docker/ctafrontend/cc7/etc/yum/pluginconf.d/versionlock.list /etc/yum/pluginconf.d/
- yum-builddep --nogpgcheck -y build_srpm/RPM/SRPMS/*
- mkdir build_rpm
- cd build_rpm
- cmake -DVCS_VERSION=${CTA_BUILD_ID} ..
- make cta_rpm
artifacts:
expire_in: 30 days
paths:
- build_rpm/RPM/RPMS
tags:
- docker
cta_tagged_rpm:
only:
- tags
......
......@@ -295,6 +295,26 @@ Utilities to faciliate working with the mediachangers
%attr(0644,root,root) %doc /usr/share/man/man1/cta-mediachanger-dismount.1cta.gz
%attr(0644,root,root) %doc /usr/share/man/man1/cta-mediachanger-mount.1cta.gz
%package -n cta-acsd
Summary: Tools to faciliate working with acsd in cta
Group: Application/CTA
Requires: logrotate
#Requires: cta-lib = %{version}-%{release}
Requires(pre): /usr/bin/getent, /usr/sbin/groupadd, /usr/sbin/useradd
%description -n cta-acsd
CERN Tape Archive:
Tools to faciliate working with acsd in cta
%pre -n cta-acsd
/usr/bin/getent passwd cta || /usr/sbin/useradd -s /bin/nologin -c "CTA system account" -g tape cta
%files -n cta-acsd
%defattr(-,root,root)
%attr(0755,cta,cta) %dir /var/log/cta
#%attr(0644,root,root) %config(noreplace) /etc/logrotate.d/cta-rmcd
#%attr(0644,root,root) %doc /usr/share/man/man1/cta-acsd.1cta.gz
%attr(0755,root,root) %{_bindir}/cta-acsd
#%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-rmcd.conf
%attr(0644,root,root) %config(noreplace) /etc/sysconfig/cta-acsd
%attr(0644,root,root) /etc/systemd/system/cta-acsd.service
%package -n cta-rmcd
Summary: Tools to faciliate working with rmcd and smc in cta
......
......@@ -45,6 +45,12 @@ target_link_libraries(
zmq
${STK_LIBRARIES})
install (TARGETS cta-acsd DESTINATION /usr/bin)
install (FILES cta-acsd.1cta DESTINATION /usr/share/man/man1)
install (FILES cta-acsd.logrotate DESTINATION /etc/logrotate.d RENAME cta-acsd)
install (FILES cta-acsd.sysconfig DESTINATION /etc/sysconfig RENAME cta-acsd)
install (FILES cta-acsd.service DESTINATION /etc/systemd/system)
add_library (ctamediachangeracsdaemonunittests SHARED AcsdCmdLineTest.cpp AcsdCmdLine.cpp)
set_property(TARGET ctamediachangeracsdaemonunittests PROPERTY SOVERSION "${CTA_SOVERSION}")
set_property(TARGET ctamediachangeracsdaemonunittests PROPERTY VERSION "${CTA_LIBVERSION}")
......
[Unit]
Description=CERN Tape Archive (CTA) acsd daemon
After=syslog.target network-online.target
[Service]
EnvironmentFile=-/etc/sysconfig/cta-acsd
ExecStart=/usr/bin/cta-acsd ${CTA_ACSD_OPTIONS}
LimitCORE=infinity
Type=forking
Restart=no
[Install]
WantedBy=default.target
Supports Markdown
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