Skip to content

Commit

Permalink
SDC-1763. Symlink streamsets command into /usr/bin in rpm packaging.
Browse files Browse the repository at this point in the history
Change-Id: Id33037977fd38fa571c433e8bb8ea87059e478b7
Reviewed-on: https://review.streamsets.net/1333
Reviewed-by: Brock Noland <brock@streamsets.com>
Tested-by: StreamSets CI <streamsets-ci-spam@streamsets.com>
  • Loading branch information
Adam Kunicki committed Sep 14, 2015
1 parent f8becd7 commit 76ff9d2
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions rpm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
</provides>
<requires>
<require>jre &gt;= 1.7</require>
<require>bash</require>
<require>which</require>
</requires>
<defineStatements>
<defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
Expand All @@ -88,6 +90,7 @@
<excludes>
<exclude>etc/**</exclude>
<exclude>bin/**</exclude>
<exclude>libexec/*</exclude>
<exclude>initd/sdcd</exclude>
</excludes>
</source>
Expand All @@ -104,6 +107,20 @@
</source>
</sources>
</mapping>
<mapping>
<directory>${sdc.dir}/libexec</directory>
<filemode>755</filemode>
<username>root</username>
<groupname>root</groupname>
<sources>
<source>
<location>${sdc.distroot}/libexec</location>
<excludes>
<exclude>bootstrap-libs</exclude>
</excludes>
</source>
</sources>
</mapping>
<mapping>
<directory>/etc/sdc</directory>
<filemode>755</filemode>
Expand Down Expand Up @@ -153,7 +170,6 @@
<username>root</username>
<groupname>root</groupname>
<filemode>755</filemode>
<configuration>noreplace</configuration>
<sources>
<source>
<location>${sdc.distroot}/initd/_sdcinitd_prototype</location>
Expand All @@ -174,11 +190,10 @@
</sources>
</mapping>
<mapping>
<directory>${sdc.dir}</directory>
<directory>/usr/bin</directory>
<sources>
<softlinkSource>
<destination>current</destination>
<location>streamsets-datacollector-${project.version}</location>
<location>${sdc.dir}/bin/streamsets</location>
</softlinkSource>
</sources>
</mapping>
Expand Down

0 comments on commit 76ff9d2

Please sign in to comment.