diff --git a/setup.py b/setup.py index e3f71fb1..60d3bbdd 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,8 @@ import sys # config file -data_files = [("/etc/lorax", ["etc/lorax.conf"])] +data_files = [("/etc/lorax", ["etc/lorax.conf"]), + ("/usr/lib/systemd/system", ["systemd/lorax-composer.service"])] # shared files for root, dnames, fnames in os.walk("share"): @@ -16,7 +17,7 @@ for root, dnames, fnames in os.walk("share"): # executable 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"])) @@ -35,13 +36,13 @@ finally: setup(name="lorax", version=vernum, description="Lorax", - long_description="", - author="Martin Gracik", - author_email="mgracik@redhat.com", - url="http://", - download_url="http://", + long_description="Tools for creating bootable images, including the Anaconda boot.iso", + author="Brian C. Lane, Will Woods, Martin Gracik", + author_email="bcl@redhat.com", + url="https://rhinstaller.github.io/lorax/", + download_url="https://github.com/rhinstaller/lorax/releases", license="GPLv2+", - packages=["pylorax"], + packages=["pylorax", "pylorax.api"], package_dir={"" : "src"}, data_files=data_files ) diff --git a/systemd/lorax-composer.service b/systemd/lorax-composer.service new file mode 100644 index 00000000..28b700cb --- /dev/null +++ b/systemd/lorax-composer.service @@ -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