mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-24 21:20:12 +00:00
Merge pull request #130 from yochananmarqos/master
Various fixes and improvements
This commit is contained in:
commit
3754cb664d
@ -9,7 +9,6 @@ APP_GUI_BINARY="wihotspot-gui"
|
||||
|
||||
PREFIX=/usr
|
||||
BINDIR=$(PREFIX)/bin
|
||||
APP_DIR=$(PREFIX)/share/$(APP_NAME)
|
||||
|
||||
ODIR=../build
|
||||
|
||||
@ -42,15 +41,13 @@ wihotspot-gui: $(OBJ)
|
||||
$(CC) -o $(ODIR)/$@ $^ $(CFLAGS) $(LIBS)
|
||||
|
||||
install: $(ODIR)/wihotspot-gui
|
||||
mkdir -p $(DESTDIR)$(APP_DIR)
|
||||
install -Dm644 desktop/hotspot.png $(DESTDIR)$(APP_DIR)/hotspot.png
|
||||
install -Dm644 desktop/wifihotspot.desktop $(DESTDIR)$(APP_DIR)/$(APP_NAME).desktop
|
||||
install -Dm644 desktop/hotspot.png $(DESTDIR)$(PREFIX)/share/pixmaps/wihotspot.png
|
||||
install -Dm644 desktop/wifihotspot.desktop $(DESTDIR)$(PREFIX)/share/applications/$(APP_NAME).desktop
|
||||
install -Dm755 $(ODIR)/wihotspot-gui $(DESTDIR)$(BINDIR)/$(APP_GUI_BINARY)
|
||||
cd scripts && $(MAKE) install
|
||||
|
||||
uninstall:
|
||||
rm -rf $(DESTDIR)$(APP_DIR)
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/wihotspot.png
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/applications/$(APP_NAME).desktop
|
||||
rm -f $(DESTDIR)$(BINDIR)/$(APP_GUI_BINARY)
|
||||
cd scripts && $(MAKE) uninstall
|
||||
@ -65,3 +62,4 @@ clean:
|
||||
rm -f $(ODIR)/*.o
|
||||
rm -f ui/$(BUILT_SRC)
|
||||
rm -f $(ODIR)/wihotspot-gui
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
Type=Application
|
||||
Name=Wifi Hotspot
|
||||
Comment=feature-rich wifi hotspot creator
|
||||
Icon=/usr/share/wihotspot/hotspot.png
|
||||
Icon=wihotspot
|
||||
Exec=sh -c 'env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/wihotspot'
|
||||
Terminal=false
|
||||
Categories=System
|
||||
|
@ -9,7 +9,7 @@ all:
|
||||
install:
|
||||
install -CDm755 create_ap $(DESTDIR)$(BINDIR)/create_ap
|
||||
install -CDm644 create_ap.conf $(DESTDIR)/etc/create_ap.conf
|
||||
[ ! -d $(DESTDIR)/lib/systemd/system ] || install -CDm644 create_ap.service $(DESTDIR)/lib/systemd/system/create_ap.service
|
||||
install -CDm644 create_ap.service $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service
|
||||
install -CDm644 bash_completion $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap
|
||||
install -CDm644 README.md $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md
|
||||
install -CDm755 wihotspot $(DESTDIR)$(BINDIR)/wihotspot
|
||||
@ -17,14 +17,14 @@ install:
|
||||
install-cli-only:
|
||||
install -CDm755 create_ap $(DESTDIR)$(BINDIR)/create_ap
|
||||
install -CDm644 create_ap.conf $(DESTDIR)/etc/create_ap.conf
|
||||
[ ! -d $(DESTDIR)/lib/systemd/system ] || install -CDm644 create_ap.service $(DESTDIR)/lib/systemd/system/create_ap.service
|
||||
install -CDm644 create_ap.service $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service
|
||||
install -CDm644 bash_completion $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap
|
||||
install -CDm644 README.md $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(BINDIR)/create_ap
|
||||
rm -f $(DESTDIR)/etc/create_ap.conf
|
||||
[ ! -f $(DESTDIR)/lib/systemd/system/create_ap.service ] || rm -f $(DESTDIR)/lib/systemd/system/create_ap.service
|
||||
rm -f $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md
|
||||
rm -f /etc/sudoers.d/create_ap # For older versions
|
||||
|
Loading…
Reference in New Issue
Block a user