728x90
반응형
Name: j2-monitoring-agent
Version: 1.0.0
Release: 1%{?dist}
Summary: Monitoring service
Group: j2
License: GPL
URL: http://renew.j2.co.kr
Source0: %{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: /bin/rm, /bin/mkdir, /bin/cp
Requires: /bin/bash, /usr/bin/g++, /bin/cat, /usr/sbin/dmidecode, /sbin/ifconfig, /usr/bin/mpstat
%define _unpackaged_files_terminate_build 0
%description
J2 Monitoring Service Client
%prep
%setup -q
%build
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
mkdir -p $RPM_BUILD_ROOT/usr/local/bin
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
cp j2-monitoring-agent $RPM_BUILD_ROOT/usr/local/bin
cp j2-agent $RPM_BUILD_ROOT/etc/rc.d/init.d
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
#%doc
%attr(0755,root,root)/usr/local/bin/j2-monitoring-agent
%attr(0755,root,root)/etc/rc.d/init.d/j2-agent
%post
chkconfig --add j2-agent
chkconfig j2-agent on
%changelog
* Thu Jan 07 2016 louie <wsk@j2.co.kr> - 1.0.0
- Initial RPM
Version: 1.0.0
Release: 1%{?dist}
Summary: Monitoring service
Group: j2
License: GPL
URL: http://renew.j2.co.kr
Source0: %{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: /bin/rm, /bin/mkdir, /bin/cp
Requires: /bin/bash, /usr/bin/g++, /bin/cat, /usr/sbin/dmidecode, /sbin/ifconfig, /usr/bin/mpstat
%define _unpackaged_files_terminate_build 0
%description
J2 Monitoring Service Client
%prep
%setup -q
%build
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
mkdir -p $RPM_BUILD_ROOT/usr/local/bin
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
cp j2-monitoring-agent $RPM_BUILD_ROOT/usr/local/bin
cp j2-agent $RPM_BUILD_ROOT/etc/rc.d/init.d
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
#%doc
%attr(0755,root,root)/usr/local/bin/j2-monitoring-agent
%attr(0755,root,root)/etc/rc.d/init.d/j2-agent
%post
chkconfig --add j2-agent
chkconfig j2-agent on
%changelog
* Thu Jan 07 2016 louie <wsk@j2.co.kr> - 1.0.0
- Initial RPM
반응형
'엔지니어 > C++' 카테고리의 다른 글
agent client makefile (create by sk) (0) | 2016.05.26 |
---|---|
j2-agent(/etc/init.d/) (create by sk) (0) | 2016.05.26 |
rpmbuild sh (create by sk) (0) | 2016.05.26 |
agent client makefile 32bit (create by sk) (0) | 2016.05.26 |
agent client (create by sk) (0) | 2016.05.26 |