mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
update setup, install slpkg
This commit is contained in:
parent
0d3ad8ce70
commit
f4f5aa794e
2 changed files with 4 additions and 2 deletions
3
setup.py
3
setup.py
|
@ -90,7 +90,8 @@ if "install" in sys.argv:
|
|||
]
|
||||
if not os.path.exists(_m.conf_path):
|
||||
os.system("mkdir -p {0}".format(_m.conf_path))
|
||||
for conf in conf_file:
|
||||
shutil.copy2(conf_file[0], _m.conf_path + conf_file[0])
|
||||
for conf in conf_file[1:]:
|
||||
filename = conf.split("/")[-1]
|
||||
print("Installing '{0}' file".format(filename))
|
||||
if os.path.isfile(_m.conf_path + filename):
|
||||
|
|
|
@ -79,7 +79,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
|
|||
|
||||
mkdir -p $PKG/etc/slpkg
|
||||
# install configurations files
|
||||
CONFIGS="slpkg.conf blacklist slackware-mirrors custom-repositories"
|
||||
install -D -m0644 conf/${PRGNAM}.conf $PKG/etc/slpkg/${PRGNAM}.conf
|
||||
CONFIGS="blacklist slackware-mirrors custom-repositories"
|
||||
for file in $CONFIGS; do
|
||||
install -D -m0644 conf/$file $PKG/etc/slpkg/${file}.new
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue