Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cherry-pick parts of #6583 to permit full-upgrade of v11.0.0 to futur…
…e versions
- Loading branch information
Showing
21 changed files
with
603 additions
and
46 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
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 |
---|---|---|
@@ -1,13 +1,22 @@ | ||
# This Makefile is only used to build packetfence-export package | ||
|
||
FULL_IMPORT_DIR = /usr/local/pf/addons/full-import | ||
EXPORT_FILES_LIST = 'export.sh find-extra-files.pl helpers.functions database.functions' | ||
FUNCTIONS_DIR = /usr/local/pf/addons/functions | ||
SRC_ADDONS_DIR=$(shell dirname $(CURDIR)) | ||
SRC_FULLIMPORT_DIR=$(SRC_ADDONS_DIR)/full-import | ||
SRC_FUNCTIONS_DIR=$(SRC_ADDONS_DIR)/functions | ||
EXPORT_FILES_LIST = 'export.sh find-extra-files.pl' | ||
|
||
install: | ||
@echo "create directory $(DESTDIR)$(FULL_IMPORT_DIR)" | ||
@echo "create directories" | ||
install -d -m0755 $(DESTDIR)$(FULL_IMPORT_DIR) | ||
install -d -m0755 $(DESTDIR)$(FUNCTIONS_DIR) | ||
|
||
@echo "install full import files" | ||
for file in $(EXPORT_FILES_LIST); do \ | ||
install -v -m 0644 $$file -D $(DESTDIR)$(FULL_IMPORT_DIR) ; \ | ||
done | ||
|
||
@echo "install functions files" | ||
for file in `find $(SRC_FUNCTIONS_DIR) -type f -name "*.functions"` ; do \ | ||
install -v -m 0644 $$file -D $(DESTDIR)$(FUNCTIONS_DIR) ; \ | ||
done |
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
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,25 @@ | ||
FULL_UPGRADE_DIR = /usr/local/pf/addons/full-upgrade | ||
SRC_ADDONS_DIR=$(shell dirname $(CURDIR)) | ||
SRC_FULLUPGRADE_DIR=$(SRC_ADDONS_DIR)/full-upgrade | ||
SRC_FUNCTIONS_DIR=$(SRC_ADDONS_DIR)/functions | ||
|
||
# full-upgrade dir is automatically created by install command | ||
install: | ||
@echo "install subdirectories and files inside it" | ||
# /* to exclude directory himself | ||
for subdir in `find $(SRC_FULLUPGRADE_DIR)/* -type d -printf "%f\n"` ; do \ | ||
install -d -m0755 $(DESTDIR)$(FULL_UPGRADE_DIR)/$$subdir ; \ | ||
for file in `find $$subdir -type f`; do \ | ||
install -v -m0644 $$file $(DESTDIR)$(FULL_UPGRADE_DIR)/$$subdir ; \ | ||
done \ | ||
done | ||
|
||
@echo "install top level $(SRC_FULLUPGRADE_DIR) files" | ||
for file in `find $(SRC_FULLUPGRADE_DIR) -maxdepth 1 -type f -not -name "Makefile"`; do \ | ||
install -v -m 0644 $$file -D $(DESTDIR)$(FULL_UPGRADE_DIR) ; \ | ||
done | ||
|
||
@echo "install functions files" | ||
for file in `find $(SRC_FUNCTIONS_DIR) -type f -name "*.functions"` ; do \ | ||
install -v -m 0644 $$file -D $(DESTDIR)$(FULL_UPGRADE_DIR) ; \ | ||
done |
Empty file.
Oops, something went wrong.