A tool to easily run appimages and other programs in Firejail sandbox.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

68 lines
1.7 KiB

# Copyright (C) 2020 Radosław-RPS
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#To install not in /usr/local, but in /, use "make exec_prefix=/usr prefix=/ install"
SHELL = /bin/sh
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
sysconfdir = $(prefix)/etc
#additional variables
fireconf_dirname = fire
#it seems I have to define "all : " before .PHONY target to "make" "make" work...
all: fire-bin
.PHONY : all
.PHONY: fire-bin
fire-bin:
install:
install -m 755 -d $(DESTDIR)/$(bindir)
install -m 755 bin/* $(DESTDIR)/$(bindir)/
install -m 755 -d $(DESTDIR)/$(sysconfdir)/$(fireconf_dirname)
install -m 644 fire.cfg $(DESTDIR)/$(sysconfdir)/$(fireconf_dirname)/fire.cfg
install -m 644 template.profile $(DESTDIR)/$(sysconfdir)/$(fireconf_dirname)/template.profile
uninstall:
-rm $(DESTDIR)/$(bindir)/fire
-rm $(DESTDIR)/$(bindir)/add-fire-profile
-rm $(DESTDIR)/$(bindir)/remove-fire-profile
-rm $(DESTDIR)/$(sysconfdir)/$(fireconf_dirname)/fire.cfg
-rm $(DESTDIR)/$(sysconfdir)/$(fireconf_dirname)/template.profile