Moved build files from src/build to ./build; cleaned up pom.xml a little
This commit is contained in:
1
build/changelog.txt
Normal file
1
build/changelog.txt
Normal file
@@ -0,0 +1 @@
|
||||
# Check https://git.metaunix.net/bitgoblin/dragoon/releases for the current changelog
|
||||
9
build/deb/etc/dragoon/config.example.toml
Normal file
9
build/deb/etc/dragoon/config.example.toml
Normal file
@@ -0,0 +1,9 @@
|
||||
# This example transcodes footage to DNxHD 1080p60 for use in video editors like DaVinci Resolve.
|
||||
[transcoder]
|
||||
repo_path = '~/videos' # location of the videos to transcode
|
||||
interval = 30
|
||||
video_format = 'mov' # video container format
|
||||
video_codec = 'dnxhd' # video codec to use
|
||||
video_parameters = 'scale=1920x1080,fps=60,format=yuv422p' # video extra format parameters flag - this will be broken later into separate attributes
|
||||
video_profile = 'dnxhr_hq' # DNxHD has multiple presets for various video qualities
|
||||
audio_codec = 'pcm_s16le' # audio codec to use
|
||||
11
build/deb/etc/systemd/system/dragoon.service
Normal file
11
build/deb/etc/systemd/system/dragoon.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Dragoon video transcoder service
|
||||
|
||||
[Service]
|
||||
User=dragoon
|
||||
Group=dragoon
|
||||
ExecStart=/usr/bin/java -Dlog4j.configurationFile=/opt/dragoon/log4j2.xml -jar '/opt/dragoon/dragoon.jar' -c '/etc/dragoon/config.toml'
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
20
build/deb/opt/dragoon/log4j2.xml
Normal file
20
build/deb/opt/dragoon/log4j2.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Configuration status="info" name="Dragoon" packages="">
|
||||
<Appenders>
|
||||
<File name="DragoonLog" fileName="/opt/dragoon/logs/dragoon.log">
|
||||
<PatternLayout>
|
||||
<Pattern>%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n</Pattern>
|
||||
</PatternLayout>
|
||||
</File>
|
||||
<Console name="Console" target="SYSTEM_OUT">
|
||||
<PatternLayout
|
||||
pattern="%highlight{%d [%t] %-5level: %msg%n%throwable}" />
|
||||
</Console>
|
||||
</Appenders>
|
||||
<Loggers>
|
||||
<Root level="info">
|
||||
<AppenderRef ref="DragoonLog"/>
|
||||
<AppenderRef ref="Console"/>
|
||||
</Root>
|
||||
</Loggers>
|
||||
</Configuration>
|
||||
23
build/scripts/postinstall.sh
Normal file
23
build/scripts/postinstall.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
GETENT_USER=$(getent passwd dragoon)
|
||||
GETENT_GROUP=$(getent group dragoon)
|
||||
|
||||
# Create the dragoon user if it doesn't already exist
|
||||
if [ "$GETENT_USER" = "" ]; then
|
||||
useradd -r dragoon
|
||||
else
|
||||
echo "The 'dragoon' user already exists, skipping creation."
|
||||
fi
|
||||
|
||||
# Create the dragoon group if it doesn't already exist
|
||||
if [ "$GETENT_GROUP" = "" ]; then
|
||||
groupadd dragoon
|
||||
usermod -aG dragoon dragoon
|
||||
else
|
||||
echo "The 'dragoon' group already exists, skipping creation."
|
||||
fi
|
||||
|
||||
# Change the directory ownership of /opt and /etc
|
||||
chown -R dragoon:dragoon /etc/dragoon
|
||||
chown -R dragoon:dragoon /opt/dragoon
|
||||
Reference in New Issue
Block a user