forked from artix/artools
Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1c56ce7f8c | ||
|
|
f80c5bf587 | ||
|
|
d5c8af7025 | ||
|
|
12a41ec0b2 | ||
|
|
b5eb287867 | ||
|
|
3e4fbd892e | ||
|
|
dca96f29d7 | ||
|
|
a382bdc83a | ||
|
|
b73aec6031 | ||
|
|
88f1145c96 | ||
|
|
43bc1d149a | ||
|
|
ffa532591c | ||
|
|
f9f8ca6b68 | ||
|
|
dbc3a94906 | ||
|
|
8e4b5f88ca | ||
|
|
104cc0b1ef | ||
|
|
ce790fcaab | ||
|
|
2d03e16a5f | ||
|
|
64e0badbac | ||
|
|
a94afab8a0 |
233
Makefile
233
Makefile
@@ -1,9 +1,41 @@
|
|||||||
Version=0.7
|
VERSION=0.8
|
||||||
|
|
||||||
Chroot_version=0.7
|
CHROOT_VERSION=0.7
|
||||||
|
|
||||||
|
TOOLS = artools
|
||||||
|
ifdef PREFIX
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
endif
|
||||||
SYSCONFDIR = /etc
|
SYSCONFDIR = /etc
|
||||||
|
BINDIR = $(PREFIX)/bin
|
||||||
|
LIBDIR = $(PREFIX)/lib
|
||||||
|
DATADIR = $(PREFIX)/share
|
||||||
|
|
||||||
|
DIRMODE = -dm0755
|
||||||
|
FILEMODE = -m0644
|
||||||
|
MODE = -m0755
|
||||||
|
|
||||||
|
LN = ln -sf
|
||||||
|
RM = rm -f
|
||||||
|
RMD = rm -fr --one-file-system
|
||||||
|
M4 = m4 -P
|
||||||
|
CHMODAW = chmod a-w
|
||||||
|
CHMODX = chmod +x
|
||||||
|
|
||||||
|
ifdef WITH-PKG
|
||||||
|
WITH-PKG = no
|
||||||
|
else
|
||||||
|
WITH-PKG = yes
|
||||||
|
endif
|
||||||
|
ifdef WITH-ISO
|
||||||
|
WITH-ISO = no
|
||||||
|
else
|
||||||
|
WITH-ISO = yes
|
||||||
|
endif
|
||||||
|
|
||||||
|
CPIODIR = $(SYSCONFDIR)/initcpio
|
||||||
|
PROFDIR = $(DATADIR)/$(TOOLS)/iso-profiles/base
|
||||||
|
OVERLAYDIR = $(PROFDIR)/live-overlay/etc
|
||||||
|
|
||||||
SYSCONF = \
|
SYSCONF = \
|
||||||
data/artools.conf
|
data/artools.conf
|
||||||
@@ -63,159 +95,146 @@ BIN_ISO = \
|
|||||||
bin/buildiso \
|
bin/buildiso \
|
||||||
bin/deployiso
|
bin/deployiso
|
||||||
|
|
||||||
|
BIN_ISO_SYMS = \
|
||||||
|
buildiso-gremlins \
|
||||||
|
buildiso-goblins
|
||||||
|
|
||||||
LIBS_ISO = \
|
LIBS_ISO = \
|
||||||
$(wildcard lib/util-iso*.sh)
|
$(wildcard lib/util-iso*.sh)
|
||||||
|
|
||||||
SHARED_ISO = \
|
SHARED_ISO = \
|
||||||
data/mkinitcpio.conf
|
data/mkinitcpio.conf
|
||||||
|
|
||||||
CPIOHOOKS = \
|
ifeq ($(WITH-PKG),yes)
|
||||||
$(wildcard initcpio/hooks/*)
|
|
||||||
|
|
||||||
CPIOINST = \
|
all: $(BIN_PKG)
|
||||||
$(wildcard initcpio/install/*)
|
|
||||||
|
|
||||||
CPIO = \
|
endif
|
||||||
initcpio/script/artix_shutdown
|
|
||||||
|
|
||||||
BASE = \
|
ifeq ($(WITH-ISO),yes)
|
||||||
$(wildcard data/base/Packages-*) \
|
|
||||||
data/base/profile.conf
|
|
||||||
|
|
||||||
LIVE_ETC = \
|
all: $(BIN_ISO)
|
||||||
data/base/live-overlay/etc/issue \
|
|
||||||
data/base/live-overlay/etc/fstab
|
|
||||||
|
|
||||||
LIVE_ETC_DEFAULT = \
|
endif
|
||||||
$(wildcard data/base/live-overlay/etc/default/*)
|
|
||||||
|
|
||||||
LIVE_ETC_PAM = \
|
all: $(BIN_BASE)
|
||||||
$(wildcard data/base/live-overlay/etc/pam.d/*)
|
|
||||||
|
|
||||||
LIVE_ETC_SUDOERS = \
|
EDIT = sed -e "s|@datadir[@]|$(DATADIR)/$(TOOLS)|g" \
|
||||||
$(wildcard data/base/live-overlay/etc/sudoers.d/*)
|
-e "s|@sysconfdir[@]|$(SYSCONFDIR)/$(TOOLS)|g" \
|
||||||
|
-e "s|@libdir[@]|$(LIBDIR)/$(TOOLS)|g" \
|
||||||
all: $(BIN_BASE) $(BIN_PKG) $(BIN_ISO)
|
-e "s|@version@|$(VERSION)|" \
|
||||||
|
-e "s|@chroot_version@|$(CHROOT_VERSION)|"
|
||||||
edit = sed -e "s|@datadir[@]|$(DESTDIR)$(PREFIX)/share/artools|g" \
|
|
||||||
-e "s|@sysconfdir[@]|$(DESTDIR)$(SYSCONFDIR)/artools|g" \
|
|
||||||
-e "s|@libdir[@]|$(DESTDIR)$(PREFIX)/lib/artools|g" \
|
|
||||||
-e "s|@version@|${Version}|" \
|
|
||||||
-e "s|@chroot_version@|${Chroot_version}|"
|
|
||||||
|
|
||||||
%: %.in Makefile
|
%: %.in Makefile
|
||||||
@echo "GEN $@"
|
@echo "GEN $@"
|
||||||
@$(RM) "$@"
|
@$(RM) "$@"
|
||||||
@m4 -P $@.in | $(edit) >$@
|
@$(M4) $@.in | $(EDIT) >$@
|
||||||
@chmod a-w "$@"
|
@$(CHMODAW) "$@"
|
||||||
@chmod +x "$@"
|
@$(CHMODX) "$@"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN_BASE) ${BIN_PKG} ${BIN_ISO}
|
$(RM) $(BIN_BASE) $(BIN_PKG) $(BIN_ISO)
|
||||||
|
|
||||||
install_base:
|
install_base:
|
||||||
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/artools
|
install $(DIRMODE) $(DESTDIR)$(SYSCONFDIR)/$(TOOLS)
|
||||||
install -m0644 ${SYSCONF} $(DESTDIR)$(SYSCONFDIR)/artools
|
install $(FILEMODE) $(SYSCONF) $(DESTDIR)$(SYSCONFDIR)/$(TOOLS)
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/bin
|
install $(DIRMODE) $(DESTDIR)$(BINDIR)
|
||||||
install -m0755 ${BIN_BASE} $(DESTDIR)$(PREFIX)/bin
|
install $(MODE) $(BIN_BASE) $(DESTDIR)$(BINDIR)
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/lib/artools
|
install $(DIRMODE) $(DESTDIR)$(LIBDIR)/$(TOOLS)
|
||||||
install -m0644 ${LIBS_BASE} $(DESTDIR)$(PREFIX)/lib/artools
|
install $(FILEMODE) $(LIBS_BASE) $(DESTDIR)$(LIBDIR)/$(TOOLS)
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools
|
install $(DIRMODE) $(DESTDIR)$(DATADIR)/$(TOOLS)
|
||||||
install -m0644 ${SHARED_BASE} $(DESTDIR)$(PREFIX)/share/artools
|
install $(FILEMODE) $(SHARED_BASE) $(DESTDIR)$(DATADIR)/$(TOOLS)
|
||||||
|
|
||||||
install_pkg:
|
install_pkg:
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/bin
|
install $(DIRMODE) $(DESTDIR)$(BINDIR)
|
||||||
install -m0755 ${BIN_PKG} $(DESTDIR)$(PREFIX)/bin
|
install $(MODE) $(BIN_PKG) $(DESTDIR)$(BINDIR)
|
||||||
|
|
||||||
ln -sf find-libdeps $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
$(LN) find-libdeps $(DESTDIR)$(BINDIR)/find-libprovides
|
||||||
|
|
||||||
for l in ${COMMITPKG_SYMS}; do ln -sf commitpkg $(DESTDIR)$(PREFIX)/bin/$$l; done
|
for l in $(COMMITPKG_SYMS); do $(LN) commitpkg $(DESTDIR)$(BINDIR)/$$l; done
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/lib/artools
|
install $(DIRMODE) $(DESTDIR)$(LIBDIR)/$(TOOLS)
|
||||||
install -m0644 ${LIBS_PKG} $(DESTDIR)$(PREFIX)/lib/artools
|
install $(FILEMODE) $(LIBS_PKG) $(DESTDIR)$(LIBDIR)/$(TOOLS)
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools
|
install $(DIRMODE) $(DESTDIR)$(DATADIR)/$(TOOLS)
|
||||||
install -m0644 ${SHARED_PKG} $(DESTDIR)$(PREFIX)/share/artools
|
install $(FILEMODE) $(SHARED_PKG) $(DESTDIR)$(DATADIR)/$(TOOLS)
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools/patches
|
install $(DIRMODE) $(DESTDIR)$(DATADIR)/$(TOOLS)/patches
|
||||||
install -m0644 ${PATCHES} $(DESTDIR)$(PREFIX)/share/artools/patches
|
install $(FILEMODE) $(PATCHES) $(DESTDIR)$(DATADIR)/$(TOOLS)/patches
|
||||||
|
install_cpio:
|
||||||
|
+make CPIODIR=$(CPIODIR) DESTDIR=$(DESTDIR) -C initcpio install
|
||||||
|
|
||||||
install_isobase:
|
install_base_profile:
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base
|
+make OVERLAYDIR=$(OVERLAYDIR) PROFDIR=$(PROFDIR) DESTDIR=$(DESTDIR) -C data/base install
|
||||||
install -m0644 ${BASE} $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base
|
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc
|
install_iso: install_cpio install_base_profile
|
||||||
install -m0644 ${LIVE_ETC} $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc
|
install $(DIRMODE) $(DESTDIR)$(BINDIR)
|
||||||
|
install $(MODE) $(BIN_ISO) $(DESTDIR)$(BINDIR)
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/default
|
for l in $(BIN_ISO_SYMS); do $(LN) buildiso $(DESTDIR)$(BINDIR)/$$l; done
|
||||||
install -m0644 ${LIVE_ETC_DEFAULT} $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/default
|
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/pam.d
|
install $(DIRMODE) $(DESTDIR)$(LIBDIR)/$(TOOLS)
|
||||||
install -m0644 ${LIVE_ETC_PAM} $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/pam.d
|
install $(FILEMODE) $(LIBS_ISO) $(DESTDIR)$(LIBDIR)/$(TOOLS)
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/sudoers.d
|
install $(DIRMODE) $(DESTDIR)$(DATADIR)/$(TOOLS)
|
||||||
install -m0644 ${LIVE_ETC_SUDOERS} $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/sudoers.d
|
install $(FILEMODE) $(SHARED_ISO) $(DESTDIR)$(DATADIR)/$(TOOLS)
|
||||||
|
|
||||||
install_iso:
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/bin
|
|
||||||
install -m0755 ${BIN_ISO} $(DESTDIR)$(PREFIX)/bin
|
|
||||||
|
|
||||||
ln -sf buildiso $(DESTDIR)$(PREFIX)/bin/buildiso-gremlins
|
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/lib/artools
|
|
||||||
install -m0644 ${LIBS_ISO} $(DESTDIR)$(PREFIX)/lib/artools
|
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/initcpio/hooks
|
|
||||||
install -m0755 ${CPIOHOOKS} $(DESTDIR)$(SYSCONFDIR)/initcpio/hooks
|
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/initcpio/install
|
|
||||||
install -m0755 ${CPIOINST} $(DESTDIR)$(SYSCONFDIR)/initcpio/install
|
|
||||||
|
|
||||||
install -m0755 ${CPIO} $(DESTDIR)$(SYSCONFDIR)/initcpio
|
|
||||||
|
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools
|
|
||||||
install -m0644 ${SHARED_ISO} $(DESTDIR)$(PREFIX)/share/artools
|
|
||||||
|
|
||||||
uninstall_base:
|
uninstall_base:
|
||||||
for f in ${SYSCONF}; do rm -f $(DESTDIR)$(SYSCONFDIR)/artools/$$f; done
|
for f in $(notdir $(SYSCONF)); do $(RM) $(DESTDIR)$(SYSCONFDIR)/$(TOOLS)/$$f; done
|
||||||
for f in ${BIN_BASE}; do rm -f $(DESTDIR)$(PREFIX)/bin/$$f; done
|
for f in $(notdir $(BIN_BASE)); do $(RM) $(DESTDIR)$(BINDIR)/$$f; done
|
||||||
for f in ${SHARED_BASE}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/$$f; done
|
for f in $(notdir $(LIBS_BASE)); do $(RM) $(DESTDIR)$(LIBDIR)/$(TOOLS)/$$f; done
|
||||||
for f in ${LIBS_BASE}; do rm -f $(DESTDIR)$(PREFIX)/lib/artools/$$f; done
|
for f in $(notdir $(SHARED_BASE)); do $(RM) $(DESTDIR)$(DATADIR)/$(TOOLS)/$$f; done
|
||||||
|
$(RMD) $(DESTDIR)$(SYSCONFDIR)/$(TOOLS)
|
||||||
|
$(RMD) $(DESTDIR)$(LIBDIR)/$(TOOLS)
|
||||||
|
$(RMD) $(DESTDIR)$(DATADIR)/$(TOOLS)
|
||||||
|
|
||||||
uninstall_pkg:
|
uninstall_pkg:
|
||||||
for f in ${BIN_PKG}; do rm -f $(DESTDIR)$(PREFIX)/bin/$$f; done
|
for f in $(notdir $(BIN_PKG)); do $(RM) $(DESTDIR)$(BINDIR)/$$f; done
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
$(RM) $(DESTDIR)$(BINDIR)/find-libprovides
|
||||||
for l in ${COMMITPKG_SYMS}; do rm -f $(DESTDIR)$(PREFIX)/bin/$$l; done
|
for l in $(COMMITPKG_SYMS); do $(RM) $(DESTDIR)$(BINDIR)/$$l; done
|
||||||
for f in ${SHARED_PKG}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/$$f; done
|
for f in $(notdir $(LIBS_PKG)); do $(RM) $(DESTDIR)$(LIBDIR)/$(TOOLS)/$$f; done
|
||||||
for f in ${PATCHES}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/patches/$$f; done
|
for f in $(notdir $(PATCHES)); do $(RM) $(DESTDIR)$(DATADIR)/$(TOOLS)/patches/$$f; done
|
||||||
for f in ${LIBS_PKG}; do rm -f $(DESTDIR)$(PREFIX)/lib/artools/$$f; done
|
for f in $(notdir $(SHARED_PKG)); do $(RM) $(DESTDIR)$(DATADIR)/$(TOOLS)/$$f; done
|
||||||
|
|
||||||
uninstall_isobase:
|
uninstall_cpio:
|
||||||
for f in ${BASE}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/$$f; done
|
+make CPIODIR=$(CPIODIR) DESTDIR=$(DESTDIR) -C initcpio uninstall
|
||||||
for f in ${LIVE_ETC}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/$$f; done
|
|
||||||
for f in ${LIVE_ETC_DEFAULT}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/default/$$f; done
|
|
||||||
for f in ${LIVE_ETC_PAM}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/pam.d/$$f; done
|
|
||||||
for f in ${LIVE_ETC_SUDOERS}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/sudoers.d/$$f; done
|
|
||||||
|
|
||||||
uninstall_iso:
|
uninstall_base_profile:
|
||||||
for f in ${BIN_ISO}; do rm -f $(DESTDIR)$(PREFIX)/bin/$$f; done
|
+make OVERLAYDIR=$(OVERLAYDIR) PROFDIR=$(PROFDIR) DESTDIR=$(DESTDIR) -C data/base uninstall
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/buildiso-gremlins
|
|
||||||
for f in ${SHARED_ISO}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/$$f; done
|
|
||||||
|
|
||||||
for f in ${LIBS_ISO}; do rm -f $(DESTDIR)$(PREFIX)/lib/artools/$$f; done
|
uninstall_iso: uninstall_cpio uninstall_base_profile
|
||||||
for f in ${CPIOHOOKS}; do rm -f $(DESTDIR)$(SYSCONFDIR)/initcpio/hooks/$$f; done
|
for f in $(notdir $(BIN_ISO)); do $(RM) $(DESTDIR)$(BINDIR)/$$f; done
|
||||||
for f in ${CPIOINST}; do rm -f $(DESTDIR)$(SYSCONFDIR)/initcpio/install/$$f; done
|
for l in $(notdir $(BIN_ISO_SYMS)); do $(RM) $(DESTDIR)$(BINDIR)/$$l; done
|
||||||
for f in ${CPIO}; do rm -f $(DESTDIR)$(SYSCONFDIR)/initcpio/$$f; done
|
for f in $(notdir $(LIBS_ISO)); do $(RM) $(DESTDIR)$(LIBDIR)/$(TOOLS)/$$f; done
|
||||||
|
for f in $(notdir $(SHARED_ISO)); do $(RM) $(DESTDIR)$(DATADIR)/$(TOOLS)/$$f; done
|
||||||
|
|
||||||
install: install_base install_pkg install_iso install_isobase
|
ifeq ($(WITH-PKG),yes)
|
||||||
|
|
||||||
uninstall: uninstall_base uninstall_pkg uninstall_iso uninstall_isobase
|
install: install_pkg
|
||||||
|
|
||||||
|
uninstall: uninstall_pkg
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(WITH-ISO),yes)
|
||||||
|
|
||||||
|
install: install_iso
|
||||||
|
|
||||||
|
uninstall: uninstall_iso
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
install: install_base
|
||||||
|
|
||||||
|
uninstall: uninstall_base
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
git archive --format=tar --prefix=artools-$(Version)/ $(Version) | gzip -9 > artools-$(Version).tar.gz
|
git archive --format=tar --prefix=$(TOOLS)-$(VERSION)/ $(VERSION) | gzip -9 > $(TOOLS)-$(VERSION).tar.gz
|
||||||
gpg --detach-sign --use-agent artools-$(Version).tar.gz
|
gpg --detach-sign --use-agent $(TOOLS)-$(VERSION).tar.gz
|
||||||
|
|
||||||
.PHONY: all clean install uninstall dist
|
.PHONY: all clean install uninstall dist
|
||||||
|
|||||||
70
README.md
70
README.md
@@ -1,42 +1,72 @@
|
|||||||
artools
|
artools
|
||||||
=============
|
=============
|
||||||
|
|
||||||
User manual
|
#### Make flags
|
||||||
|
|
||||||
### 1. artools.conf
|
|
||||||
|
* PREFIX=/usr/local (default if defined)
|
||||||
|
* SYSCONFDIR=/etc
|
||||||
|
* WITH-PKG=yes
|
||||||
|
* WITH-ISO=yes
|
||||||
|
|
||||||
|
|
||||||
|
#### Dependencies
|
||||||
|
|
||||||
|
##### Buildtime:
|
||||||
|
|
||||||
|
* make
|
||||||
|
* git
|
||||||
|
* m4
|
||||||
|
|
||||||
|
##### Runtime:
|
||||||
|
|
||||||
|
- base:
|
||||||
|
|
||||||
|
* openssh
|
||||||
|
* rsync
|
||||||
|
* haveged
|
||||||
|
* os-prober
|
||||||
|
* gnupg
|
||||||
|
* pacman
|
||||||
|
|
||||||
|
- pkg:
|
||||||
|
|
||||||
|
* namcap
|
||||||
|
* git
|
||||||
|
|
||||||
|
- iso:
|
||||||
|
* dosfstools
|
||||||
|
* libisoburn
|
||||||
|
* squashfs-tools
|
||||||
|
* mkinitcpio
|
||||||
|
* mktorrent
|
||||||
|
* grub
|
||||||
|
|
||||||
|
#### Configuration
|
||||||
|
|
||||||
artools.conf is the central configuration file for artools.
|
artools.conf is the central configuration file for artools.
|
||||||
By default, the config is installed in
|
By default, the config is installed in
|
||||||
|
|
||||||
~~~
|
/etc/artools/artools.conf
|
||||||
/etc/artools/artools.conf
|
|
||||||
~~~
|
|
||||||
|
|
||||||
A user artools.conf can be placed in
|
A user artools.conf can be placed in
|
||||||
|
|
||||||
~~~
|
$HOME/.config/artools/artools.conf
|
||||||
$HOME/.config/artools/artools.conf
|
|
||||||
~~~
|
|
||||||
|
|
||||||
If the userconfig is present, artools will load the userconfig values, however, if variables have been set in the systemwide
|
If the userconfig is present, artools will load the userconfig values, however, if variables have been set in the systemwide
|
||||||
|
|
||||||
~~~
|
These values take precedence over the userconfig.
|
||||||
/etc/artools/artools.conf
|
|
||||||
~~~
|
|
||||||
|
|
||||||
these values take precedence over the userconfig.
|
|
||||||
Best practise is to leave systemwide file untouched.
|
Best practise is to leave systemwide file untouched.
|
||||||
By default it is commented and shows just initialization values done in code.
|
By default it is commented and shows just initialization values done in code.
|
||||||
|
|
||||||
Tools configuration is done in artools.conf or by args.
|
Tools configuration is done in artools.conf or by args.
|
||||||
Specifying args will override artools.conf settings.
|
Specifying args will override artools.conf settings.
|
||||||
|
|
||||||
~~~
|
Both, pacman.conf and makepkg.conf for chroots are loaded from
|
||||||
$HOME/.config/artools/import.list.d
|
|
||||||
~~~
|
|
||||||
|
|
||||||
overriding
|
/usr/share/artools/{makepkg,pacman-*}.conf
|
||||||
|
|
||||||
~~~
|
and can be overridden dropping them in
|
||||||
/etc/artools/import.list.d
|
|
||||||
~~~
|
$HOME/.config/artools/
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ prepare_build(){
|
|||||||
local pacman_conf pac_file="pacman-default.conf"
|
local pacman_conf pac_file="pacman-default.conf"
|
||||||
|
|
||||||
case "${stablility}" in
|
case "${stablility}" in
|
||||||
'gremlins') pac_file="pacman-${stablility}.conf" ;;
|
'gremlins'|'goblins') pac_file="pacman-${stablility}.conf" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
pacman_conf="${DATADIR}/$pac_file"
|
pacman_conf="${DATADIR}/$pac_file"
|
||||||
|
|||||||
52
data/base/Makefile
Normal file
52
data/base/Makefile
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
DIRMODE = -dm0755
|
||||||
|
FILEMODE = -m0644
|
||||||
|
RMD = rm -fr --one-file-system
|
||||||
|
RM = rm -f
|
||||||
|
|
||||||
|
BASE = \
|
||||||
|
$(wildcard Packages-*) \
|
||||||
|
profile.conf
|
||||||
|
|
||||||
|
LIVE_ETC = \
|
||||||
|
live-overlay/etc/fstab \
|
||||||
|
live-overlay/etc/issue
|
||||||
|
|
||||||
|
LIVE_ETC_DEFAULT = \
|
||||||
|
$(wildcard live-overlay/etc/default/*)
|
||||||
|
|
||||||
|
LIVE_ETC_PAM = \
|
||||||
|
$(wildcard live-overlay/etc/pam.d/*)
|
||||||
|
|
||||||
|
LIVE_ETC_SUDOERS = \
|
||||||
|
$(wildcard live-overlay/etc/sudoers.d/*)
|
||||||
|
|
||||||
|
install_isobase:
|
||||||
|
install $(DIRMODE) $(DESTDIR)$(PROFDIR)
|
||||||
|
install $(FILEMODE) $(BASE) $(DESTDIR)$(PROFDIR)
|
||||||
|
|
||||||
|
install $(DIRMODE) $(DESTDIR)$(OVERLAYDIR)
|
||||||
|
install $(FILEMODE) $(LIVE_ETC) $(DESTDIR)$(OVERLAYDIR)
|
||||||
|
|
||||||
|
install $(DIRMODE) $(DESTDIR)$(OVERLAYDIR)/default
|
||||||
|
install $(FILEMODE) $(LIVE_ETC_DEFAULT) $(DESTDIR)$(OVERLAYDIR)/default
|
||||||
|
|
||||||
|
install $(DIRMODE) $(DESTDIR)$(OVERLAYDIR)/pam.d
|
||||||
|
install $(FILEMODE) $(LIVE_ETC_PAM) $(DESTDIR)$(OVERLAYDIR)/pam.d
|
||||||
|
|
||||||
|
install $(DIRMODE) $(DESTDIR)$(OVERLAYDIR)/sudoers.d
|
||||||
|
install $(FILEMODE) $(LIVE_ETC_SUDOERS) $(DESTDIR)$(OVERLAYDIR)/sudoers.d
|
||||||
|
|
||||||
|
uninstall_isobase:
|
||||||
|
for f in $(notdir $(BASE)); do $(RM) $(DESTDIR)$(PROFDIR)/$$f; done
|
||||||
|
for f in $(notdir $(LIVE_ETC)); do $(RM) $(DESTDIR)$(OVERLAYDIR)/$$f; done
|
||||||
|
for f in $(notdir $(LIVE_ETC_DEFAULT)); do $(RM) $(DESTDIR)$(OVERLAYDIR)/default/$$f; done
|
||||||
|
for f in $(notdir $(LIVE_ETC_PAM)); do $(RM) $(DESTDIR)$(OVERLAYDIR)/pam.d/$$f; done
|
||||||
|
for f in $(notdir $(LIVE_ETC_SUDOERS)); do $(RM) $(DESTDIR)$(OVERLAYDIR)/sudoers.d/$$f; done
|
||||||
|
$(RMD) $(DESTDIR)$(PROFDIR)
|
||||||
|
|
||||||
|
|
||||||
|
install: install_isobase
|
||||||
|
|
||||||
|
uninstall: uninstall_isobase
|
||||||
|
|
||||||
|
.PHONY: install uninstall
|
||||||
@@ -2,4 +2,4 @@
|
|||||||
# /etc/fstab: static file system information
|
# /etc/fstab: static file system information
|
||||||
#
|
#
|
||||||
# <file system> <dir> <type> <options> <dump> <pass>
|
# <file system> <dir> <type> <options> <dump> <pass>
|
||||||
/dev/mapper/root-image / auto defaults 0 0
|
/dev/mapper/rootfs / auto defaults 0 0
|
||||||
|
|||||||
31
initcpio/Makefile
Normal file
31
initcpio/Makefile
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
DIRMODE = -dm0755
|
||||||
|
MODE = -m0755
|
||||||
|
RM = rm -f
|
||||||
|
|
||||||
|
CPIOHOOKS = \
|
||||||
|
$(wildcard hooks/*)
|
||||||
|
|
||||||
|
CPIOINST = \
|
||||||
|
$(wildcard install/*)
|
||||||
|
|
||||||
|
SCRIPT = \
|
||||||
|
$(wildcard script/*)
|
||||||
|
|
||||||
|
install_initcpio:
|
||||||
|
install $(DIRMODE) $(DESTDIR)$(CPIODIR)/hooks
|
||||||
|
install $(MODE) $(CPIOHOOKS) $(DESTDIR)$(CPIODIR)/hooks
|
||||||
|
|
||||||
|
install $(DIRMODE) $(DESTDIR)$(CPIODIR)/install
|
||||||
|
install $(MODE) $(CPIOINST) $(DESTDIR)$(CPIODIR)/install
|
||||||
|
install $(MODE) $(SCRIPT) $(DESTDIR)$(CPIODIR)
|
||||||
|
|
||||||
|
uninstall_initcpio:
|
||||||
|
for f in $(notdir $(CPIOHOOKS)); do $(RM) $(DESTDIR)$(CPIODIR)/hooks/$$f; done
|
||||||
|
for f in $(notdir $(CPIOINST)); do $(RM) $(DESTDIR)$(CPIODIR)/install/$$f; done
|
||||||
|
for f in $(notdir $(SCRIPT)); do $(RM) $(DESTDIR)$(CPIODIR)/$$f; done
|
||||||
|
|
||||||
|
install: install_initcpio
|
||||||
|
|
||||||
|
uninstall: uninstall_initcpio
|
||||||
|
|
||||||
|
.PHONY: install uninstall
|
||||||
Reference in New Issue
Block a user