Skip to content

Commit a8a4c52

Browse files
committed
Merge pull request #95 from mackerelio/revert-91-use-usr-bin
Revert "use /usr/bin/check-*"
2 parents c65f6bc + 64a3a4e commit a8a4c52

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

packaging/deb/debian/rules

+2-7
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,9 @@ package=mackerel-check-plugins
77

88
override_dh_auto_install:
99
dh_auto_install
10-
install -d -m 755 debian/tmp/usr/bin
11-
for i in elasticsearch file-age file-size http jmx-jolokia load log mailq memcached mysql ntpoffset postgresql procs redis solr tcp uptime;do \
12-
install -m755 debian/check-$$i debian/tmp/usr/bin; \
13-
done
1410
install -d -m 755 debian/tmp/usr/local/bin
15-
for i in elasticsearch file-age file-size http jmx-jolokia load log mailq memcached mysql ntpoffset postgresql procs redis solr tcp uptime; \
16-
do \
17-
ln -s ../../bin/check-$$i debian/tmp/usr/local/bin/check-$$i; \
11+
for i in elasticsearch file-age file-size http jmx-jolokia load log mailq memcached mysql ntpoffset postgresql procs redis solr tcp uptime;do \
12+
install -m755 debian/check-$$i debian/tmp/usr/local/bin; \
1813
done
1914

2015
override_dh_usrlocal:

packaging/rpm/mackerel-check-plugins.spec

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
%define _binaries_in_noarch_packages_terminate_build 0
22
%define _localbindir /usr/local/bin
3-
%define __targetdir /usr/bin
4-
%define __oldtargetdir /usr/local/bin
3+
%define __targetdir /usr/local/bin
54

65
Name: mackerel-check-plugins
76
Version: 0.5.1
@@ -30,19 +29,12 @@ for i in elasticsearch file-age file-size http jmx-jolokia load log mailq memcac
3029
%{__install} -m0755 %{_sourcedir}/build/check-$i %{buildroot}%{__targetdir}/; \
3130
done
3231

33-
%{__install} -d -m755 %{buildroot}%{__oldtargetdir}
34-
for i in elasticsearch file-age file-size http jmx-jolokia load log mailq memcached mysql ntpoffset postgresql procs redis solr tcp uptime; \
35-
do \
36-
ln -s ../../bin/check-$i %{buildroot}%{__oldtargetdir}/check-$i; \
37-
done
38-
3932
%clean
4033
%{__rm} -rf %{buildroot}
4134

4235
%files
4336
%defattr(-, root, root, 0755)
4437
%{__targetdir}
45-
%{__oldtargetdir}
4638

4739
%changelog
4840
* Fri Mar 25 2016 <[email protected]> - 0.5.1

0 commit comments

Comments
 (0)