Skip to content

Commit

Permalink
aggiunti le iniziali librerie in python
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Panicucci committed Jun 4, 2014
1 parent 532731d commit 247c1c6
Show file tree
Hide file tree
Showing 57 changed files with 53 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ filename.errato
filename.giusto
FileProtector
firma.odt
firmapiu
firmapiu.cfg
firme-esaurite.tsr
prova_curl
Expand All @@ -43,3 +42,4 @@ xmldsig-core-schema.xsd
dumpasn1-i386
dumpasn1-x86_64
python_cert.der
firmapiu-fortunato
27 changes: 0 additions & 27 deletions Makefile

This file was deleted.

9 changes: 0 additions & 9 deletions firmapiu-gui-glade

This file was deleted.

49 changes: 49 additions & 0 deletions firmapiu/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#Mettere sempre il build prima dell'install
# NON FARE COSI
# install:
# install -d $(BIN_DIR)
# install src/$(EXE) $(BIN_DIR)/$(EXE)
#
# build:
# @echo "Nothing to build this is a simple script"

BIN_DIR = $(DESTDIR)/usr/bin
ETC_DIR=$(DESTDIR)/etc/firmapiu
SHARE_DIR = $(DESTDIR)/usr/share/firmapiu

MODULES_DIR = $(SHARE_DIR)/modules
LIBRARY_DIR = $(SHARE_DIR)/library

EXE_CLI = firmapiu-cli
EXE_PY = firmapiu-py
EXE_GUI = firmapiu-gui
CONFIG = firmapiurc

build:
sed -i "/^FIRMAPIU_PATH/d" bin/$(EXE_CLI) # sostituisco il path dei moduli
sed -i "s#../usr/share/firmapiu/icons/#/usr/share/firmapiu/icons/#" bin/$(EXE_GUI)

install:
# create directory
install -d $(BIN_DIR) $(ETC_DIR) $(SHARE_DIR)
install -d $(MODULES_DIR) $(LIBRARY_DIR)
# install binary file
install bin/$(EXE_CLI) $(BIN_DIR)
install bin/$(EXE_GUI) $(BIN_DIR)
install bin/$(EXE_PY) $(BIN_DIR)
# install library and config file
install usr/share/firmapiu/modules/*.sh $(MODULES_DIR)
install usr/share/firmapiu/library/*.py $(LIBRARY_DIR)
install -m644 etc/firmapiu/$(CONFIG) $(ETC_DIR)

uninstall:
# rimuovo i file binary
rm $(BIN_DIR)/$(EXE_CLI)
rm $(BIN_DIR)/$(EXE_PY)
rm $(BIN_DIR)/$(EXE_GUI)
# rimuovo la cartella /etc/firmapiu
rm -r $(ETC_DIR)
# rimuovo la cartella /usr/share/firmapiu
rm -r $(SHARE_DIR)

.PHONY: build install uninstall
3 changes: 2 additions & 1 deletion firmapiu-cli → firmapiu/bin/firmapiu-cli
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
# -- TSA_PASSWORD password del server tsa

# path dove verranno messi i moduli
MODULES_PATH="./modules"
FIRMAPIU_PATH="${PWD}/.."
MODULES_PATH="${FIRMAPIU_PATH}/usr/share/firmapiu/modules"

print_usage() {
echo "Uso: firmapiu-cli [OPTION]... file"
Expand Down
2 changes: 1 addition & 1 deletion firmapiu-gui-py → firmapiu/bin/firmapiu-gui
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ExecuteThread(Thread):
class FirmapiuWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self)
self.icon_dir = "icons/"
self.icon_dir = "../usr/share/firmapiu/icons/"
self.connect("delete-event", Gtk.main_quit)

self.button_grid = Gtk.Grid()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 247c1c6

Please sign in to comment.