Skip to content

Makefile change #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 16, 2016
Merged

Conversation

neogenix
Copy link
Contributor

Fixed the makefile to support version 0.3.1, and removed the {} directory creation.

See details below:

Before:

root@cassandra-reaper:~# git clone https://github.com/neogenix/cassandra-reaper.git neogenix_reaper
Cloning into 'neogenix_reaper'...
remote: Counting objects: 6182, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 6182 (delta 5), reused 0 (delta 0), pack-reused 6153
Receiving objects: 100% (6182/6182), 1.64 MiB | 0 bytes/s, done.
Resolving deltas: 100% (2779/2779), done.
Checking connectivity... done.
root@cassandra-reaper:~# cd neogenix_reaper/
root@cassandra-reaper:~/neogenix_reaper# make
mvn package
[INFO] Scanning for projects...
<snip>
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /root/neogenix_reaper/target/cassandra-reaper-0.3.2-SNAPSHOT.jar with /root/neogenix_reaper/target/cassandra-reaper-0.3.2-SNAPSHOT-shaded.jar
[INFO] Dependency-reduced POM written at: /root/neogenix_reaper/dependency-reduced-pom.xml
[INFO] Dependency-reduced POM written at: /root/neogenix_reaper/dependency-reduced-pom.xml
[INFO] Dependency-reduced POM written at: /root/neogenix_reaper/dependency-reduced-pom.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 58.594s
[INFO] Finished at: Mon Nov 14 18:35:39 UTC 2016
[INFO] Final Memory: 27M/268M
[INFO] ------------------------------------------------------------------------
root@cassandra-reaper:~/neogenix_reaper# make deb
mkdir -p build/usr/share/cassandra-reaper
mkdir -p build/usr/local/bin
mkdir -p build/etc/{spotify,init.d}
cp resource/cassandra-reaper.yaml build/etc/spotify/
cp: cannot create regular file ‘build/etc/spotify/’: Not a directory
make: *** [prepare] Error 1

After:

root@cassandra-reaper:~/neogenix_reaper# make deb
mkdir -p build/usr/share/cassandra-reaper
mkdir -p build/usr/local/bin
mkdir -p build/etc/init.d
mkdir -p build/etc/spotify
cp resource/cassandra-reaper.yaml build/etc/spotify/
cp target/cassandra-reaper-0.3.2-SNAPSHOT.jar build/usr/share/cassandra-reaper/
cp bin/* build/usr/local/bin/
cp debian/reaper.init build/etc/init.d/cassandra-reaper
chmod 755 build/etc/init.d/cassandra-reaper
rm -f reaper_*.deb
fpm -s dir -t deb -n reaper -v 0.3.2-SNAPSHOT --pre-install debian/preinstall.sh -C build .
Debian packaging tools generally labels all files in /etc as config files, as mandated by policy, so fpm defaults to this behavior for deb packages. You can disable this default behavior with --deb-no-default-config-files flag {:level=>:warn}
Debian packaging tools generally labels all files in /etc as config files, as mandated by policy, so fpm defaults to this behavior for deb packages. You can disable this default behavior with --deb-no-default-config-files flag {:level=>:warn}
Created package {:path=>"reaper_0.3.2-SNAPSHOT_amd64.deb"}
root@cassandra-reaper:~/neogenix_reaper#

@neogenix neogenix changed the title Make file change Makefile change Nov 15, 2016
@adejanovski adejanovski merged commit 57f18b5 into thelastpickle:master Nov 16, 2016
@adejanovski
Copy link
Contributor

Works for me. Thanks for the PR !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants