Update setup.py for lorax-composer and composer-cli
This commit is contained in:
parent
825d1931e4
commit
29ceea3d05
1
etc/composer.conf
Normal file
1
etc/composer.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
# lorax-composer configuration file
|
@ -206,6 +206,8 @@ getent passwd weldr >/dev/null 2>&1 || useradd -r -g weldr -d / -s /sbin/nologin
|
|||||||
%{python3_sitelib}/pylorax/api/*
|
%{python3_sitelib}/pylorax/api/*
|
||||||
%{_sbindir}/lorax-composer
|
%{_sbindir}/lorax-composer
|
||||||
%{_unitdir}/lorax-composer.service
|
%{_unitdir}/lorax-composer.service
|
||||||
|
%dir %{_datadir}/lorax/composer
|
||||||
|
%{_datadir}/lorax/composer/*
|
||||||
|
|
||||||
%files -n composer-cli
|
%files -n composer-cli
|
||||||
%{_bindir}/composer-cli
|
%{_bindir}/composer-cli
|
||||||
|
19
setup.py
19
setup.py
@ -6,7 +6,9 @@ import sys
|
|||||||
|
|
||||||
|
|
||||||
# config file
|
# config file
|
||||||
data_files = [("/etc/lorax", ["etc/lorax.conf"])]
|
data_files = [("/etc/lorax", ["etc/lorax.conf"]),
|
||||||
|
("/etc/lorax", ["etc/composer.conf"]),
|
||||||
|
("/usr/lib/systemd/system", ["systemd/lorax-composer.service"])]
|
||||||
|
|
||||||
# shared files
|
# shared files
|
||||||
for root, dnames, fnames in os.walk("share"):
|
for root, dnames, fnames in os.walk("share"):
|
||||||
@ -16,8 +18,10 @@ for root, dnames, fnames in os.walk("share"):
|
|||||||
|
|
||||||
# executable
|
# executable
|
||||||
data_files.append(("/usr/sbin", ["src/sbin/lorax", "src/sbin/mkefiboot",
|
data_files.append(("/usr/sbin", ["src/sbin/lorax", "src/sbin/mkefiboot",
|
||||||
"src/sbin/livemedia-creator"]))
|
"src/sbin/livemedia-creator", "src/sbin/lorax-composer"]))
|
||||||
data_files.append(("/usr/bin", ["src/bin/image-minimizer", "src/bin/mk-s390-cdboot"]))
|
data_files.append(("/usr/bin", ["src/bin/image-minimizer",
|
||||||
|
"src/bin/mk-s390-cdboot",
|
||||||
|
"src/bin/composer-cli"]))
|
||||||
|
|
||||||
# get the version
|
# get the version
|
||||||
sys.path.insert(0, "src")
|
sys.path.insert(0, "src")
|
||||||
@ -34,12 +38,13 @@ finally:
|
|||||||
setup(name="lorax",
|
setup(name="lorax",
|
||||||
version=vernum,
|
version=vernum,
|
||||||
description="Lorax",
|
description="Lorax",
|
||||||
long_description="",
|
long_description="Tools for creating bootable images, including the Anaconda boot.iso",
|
||||||
author="Martin Gracik, Will Woods <wwoods@redhat.com>, Brian C. Lane <bcl@redhat.com>",
|
author="Martin Gracik, Will Woods <wwoods@redhat.com>, Brian C. Lane <bcl@redhat.com>",
|
||||||
url="http://www.github.com/rhinstaller/lorax/",
|
author_email="bcl@redhat.com",
|
||||||
download_url="http://www.github.com/rhinstaller/lorax/releases/",
|
url="http://www.github.com/weldr/lorax/",
|
||||||
|
download_url="http://www.github.com/weldr/lorax/releases/",
|
||||||
license="GPLv2+",
|
license="GPLv2+",
|
||||||
packages=["pylorax"],
|
packages=["pylorax", "pylorax.api", "composer", "composer.cli"],
|
||||||
package_dir={"" : "src"},
|
package_dir={"" : "src"},
|
||||||
data_files=data_files
|
data_files=data_files
|
||||||
)
|
)
|
||||||
|
12
systemd/lorax-composer.service
Normal file
12
systemd/lorax-composer.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Lorax Image Composer API Server
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=root
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/sbin/lorax-composer /var/lib/lorax/composer/recipes/
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user