Skip to content
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

Makefile should include a install and uninstall section #7

Open
j-4 opened this issue Feb 28, 2013 · 0 comments
Open

Makefile should include a install and uninstall section #7

j-4 opened this issue Feb 28, 2013 · 0 comments
Milestone

Comments

@j-4
Copy link
Contributor

j-4 commented Feb 28, 2013

for example:

install: pack
@echo "Installing Components..."
mkdir -p /usr/share/rainy
sed -n s/./data///usr/share/rainy//g $(RELEASEDIR)/settings.conf
cp $(RELEASEDIR)/settings.conf /etc/rainy.conf
cp $(RELEASEDIR)/$(PACKED_EXE) /usr/sbin/Rainy.exe
cp Rainy/rainy /etc/init.d/rainy
chmod 755 /etc/init.d/rainy
update-rc.d rainy defaults
@echo "Installed!"

uninstall:
@echo "Removing Components..."
rm -Rf $(datarootdir)/rainy
rm -f $(sysconfdir)/rainy.conf
rm -f $(sbindir)/$(PACKED_EXE)
update-rc.d -f rainy remove
rm -f /etc/init.d/rainy
@echo "Complete!"

this already includes a initscript I wrote (and its registration), however it does not work yet due to another issue with mono-service

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

No branches or pull requests

1 participant