-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It seemed to be that debian packages were built with the ext/debian/patches/makefile.patch which creates a Makefile, but instead debian/rules was calling on the Makefile in ext/ We can't really touch the Makefile in ext/ as that's also touched by the openbsd port, but we can make a new one called Makefile.debian and call on that instead.
- Loading branch information
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/make -f | ||
|
||
# This is the makefile used by debian/rules when invoked by rake deb | ||
|
||
DESTDIR= | ||
|
||
build: | ||
|
||
clean: | ||
|
||
install: install-bin install-lib install-conf install-plugins install-doc | ||
|
||
install-bin: | ||
install -d $(DESTDIR)/usr/sbin | ||
install -d $(DESTDIR)/usr/bin | ||
cp bin/mc-* $(DESTDIR)/usr/sbin | ||
cp bin/mco $(DESTDIR)/usr/bin | ||
cp bin/mcollectived $(DESTDIR)/usr/sbin/mcollectived | ||
|
||
install-lib: | ||
install -d $(DESTDIR)/usr/lib/ruby/vendor_ruby/ | ||
cp -a lib/* $(DESTDIR)/usr/lib/ruby/vendor_ruby/ | ||
|
||
install-conf: | ||
install -d $(DESTDIR)/etc/mcollective/ | ||
install -d $(DESTDIR)/etc/init.d | ||
cp -r etc/* $(DESTDIR)/etc/mcollective/ | ||
cp mcollective.init $(DESTDIR)/etc/init.d/mcollective | ||
rm $(DESTDIR)/etc/mcollective/ssl/PLACEHOLDER | ||
rm $(DESTDIR)/etc/mcollective/ssl/clients/PLACEHOLDER | ||
|
||
install-plugins: | ||
install -d $(DESTDIR)/usr/share/mcollective/ | ||
cp -a plugins $(DESTDIR)/usr/share/mcollective/ | ||
|
||
install-doc: | ||
install -d $(DESTDIR)/usr/share/doc/ | ||
cp -a doc $(DESTDIR)/usr/share/doc/mcollective | ||
|
||
uninstall: | ||
rm -f $(DESTDIR)/usr/sbin/mcollectived | ||
rm -rf $(DESTDIR)/usr/lib/ruby/1.8/mcollective* | ||
rm -rf $(DESTDIR)/usr/share/mcollective | ||
rm -rf $(DESTDIR)/etc/mcollective | ||
|
||
.PHONY: build clean install uninstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters