summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorErnie Hershey <ernie.hershey@10gen.com>2013-12-09 20:48:17 -0500
committerErnie Hershey <ernie.hershey@10gen.com>2014-02-11 07:26:13 -0500
commitcc950771c0b7975be18b373f3e4fd009bccc606f (patch)
tree4a4f84f1dc8abb84f07393683acfc82c1c49d8f3 /rpm
parentb5f67b6a6aec989aec7c01fd445b25c5804f9016 (diff)
downloadmongo-cc950771c0b7975be18b373f3e4fd009bccc606f.tar.gz
SERVER-9123 Include snmp files in enterprise packages
Diffstat (limited to 'rpm')
-rw-r--r--rpm/mongodb-enterprise-unstable.spec11
-rw-r--r--rpm/mongodb-enterprise.spec10
2 files changed, 19 insertions, 2 deletions
diff --git a/rpm/mongodb-enterprise-unstable.spec b/rpm/mongodb-enterprise-unstable.spec
index f3c8b91c086..dfe077e79b7 100644
--- a/rpm/mongodb-enterprise-unstable.spec
+++ b/rpm/mongodb-enterprise-unstable.spec
@@ -79,7 +79,7 @@ to develop mongo client software.
%install
mkdir -p $RPM_BUILD_ROOT/usr
-cp -rv BINARIES/usr/bin $RPM_BUILD_ROOT/usr
+cp -rv bin $RPM_BUILD_ROOT/usr
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
cp debian/*.1 $RPM_BUILD_ROOT/usr/share/man/man1/
# FIXME: remove this rm when mongosniff is back in the package
@@ -96,6 +96,7 @@ mkdir -p $RPM_BUILD_ROOT/var/log/mongodb
mkdir -p $RPM_BUILD_ROOT/var/run/mongodb
touch $RPM_BUILD_ROOT/var/log/mongodb/mongod.log
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -138,6 +139,14 @@ fi
%attr(0755,mongodb,mongodb) %dir /var/log/mongodb
%attr(0755,mongodb,mongodb) %dir /var/run/mongodb
%attr(0640,mongodb,mongodb) %config(noreplace) %verify(not md5 size mtime) /var/log/mongodb/mongod.log
+%doc snmp/MONGOD-MIB.txt
+%doc snmp/MONGODBINC-MIB.txt
+%doc snmp/mongod.conf.master
+%doc snmp/mongod.conf.subagent
+%doc snmp/README-snmp.txt
+%doc LICENSE.txt
+%doc README
+%doc THIRD-PARTY-NOTICES
%files shell
%defattr(-,root,root,-)
diff --git a/rpm/mongodb-enterprise.spec b/rpm/mongodb-enterprise.spec
index 15e77b904f1..1129abf1f5b 100644
--- a/rpm/mongodb-enterprise.spec
+++ b/rpm/mongodb-enterprise.spec
@@ -77,7 +77,7 @@ to develop mongo client software.
%install
mkdir -p $RPM_BUILD_ROOT/usr
-cp -rv BINARIES/usr/bin $RPM_BUILD_ROOT/usr
+cp -rv bin $RPM_BUILD_ROOT/usr
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
cp debian/*.1 $RPM_BUILD_ROOT/usr/share/man/man1/
# FIXME: remove this rm when mongosniff is back in the package
@@ -93,6 +93,14 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/mongodb
mkdir -p $RPM_BUILD_ROOT/var/log/mongodb
mkdir -p $RPM_BUILD_ROOT/var/run/mongodb
touch $RPM_BUILD_ROOT/var/log/mongodb/mongod.log
+%doc snmp/MONGOD-MIB.txt
+%doc snmp/MONGODBINC-MIB.txt
+%doc snmp/mongod.conf.master
+%doc snmp/mongod.conf.subagent
+%doc snmp/README-snmp.txt
+%doc LICENSE.txt
+%doc README
+%doc THIRD-PARTY-NOTICES
%clean
rm -rf $RPM_BUILD_ROOT