Commit f910680e authored by Jonathan Hanks's avatar Jonathan Hanks
Browse files

Adding in a debian directory for experimental bullseye packaging.

parent 1425d918
support/bin/rts_awgtpman_exec usr/bin
support/systemd/rts-awgtpman@.service lib/systemd/system
usr/bin/awgtpman
#!/bin/sh
set -e
# http://www.fifi.org/doc/debconf-doc/tutorial.html
. /usr/share/debconf/confmodule
ENVFILE=/etc/advligorts/env
if [ -e "$ENVFILE" ]; then
. $ENVFILE || true
db_set advligorts/site "$SITE"
db_set advligorts/ifo "$IFO"
fi
for var in site ifo ; do
template=advligorts/$var
case $var in
site) wc=013 ;;
ifo) wc=012 ;;
esac
while true ; do
db_input high $template || ret=$?
# return is 30 if the user is not being shown the config, so
# break
if [ "$ret" = 30 ] ; then
break
fi
db_go || true
db_get $template
val=`echo -n $RET | tr [a-z] [A-Z]`
wcc=`echo -n $val | wc -lwm | tr -d '[:blank:]'`
if [ "$wcc" = "$wc" ] ; then
db_set $template "$val"
break
fi
done
done
exit 0
etc/advligorts
var/lib/advligorts
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
if ! getent passwd advligorts >/dev/null ; then
echo "creating advligorts user..."
adduser --quiet --system --no-create-home --group \
--home /var/lib/advligorts \
--gecos 'advLigoRTS,,,' \
advligorts
fi
ENVFILE=/etc/advligorts/env
# generate env file if it doesn't exist
if [ ! -e "$ENVFILE" ]; then
echo 'SITE=' > "$ENVFILE"
echo 'IFO=' >> "$ENVFILE"
fi
# substitute in the values from the debconf db.
db_get advligorts/site
SITE="$RET"
db_get advligorts/ifo
IFO="$RET"
# cp before the sed ensures we do not mess up the config file's
# ownership and permissions.
cp -a -f $ENVFILE $ENVFILE.tmp
sed -e "s/^ *SITE=.*/SITE=$SITE/" \
-e "s/^ *IFO=.*/IFO=$IFO/" \
< $ENVFILE > $ENVFILE.tmp
mv -f $ENVFILE.tmp $ENVFILE
# required debhelper tag for extra substitution
#DEBHELPER#
exit 0
support/etc/advligorts/daqd.standalone.sample.rc
support/systemd/rts-daqd.service lib/systemd/system
support/systemd/rts-nds.service lib/systemd/system
support/systemd/rts-run_number.service lib/systemd/system
usr/bin/checkdaqconfig
usr/bin/daq_wiper
usr/bin/daqd
usr/bin/nds
usr/bin/run_number_server
#!/bin/sh
set -e
# create the frame directory in a safe way, and give them to the
# advligorts user
#
# NOTE: we do this only if the directory doesn't already exist so that
# we don't break existing deployments that might need these
# directories owned by a different user.
if [ ! -e /frames ] ; then
mkdir -m 0755 /frames
chown advligorts:advligorts /frames
for sdir in full trend trend/second trend/minute trend/minute_raw ; do
runuser -u advligorts -- mkdir /frames/$sdir
done
fi
ENVFILE=/etc/advligorts/env
DAQFILE=/etc/advligorts/daqdrc
if [ ! -e $DAQFILE ] && [ -e $ENVFILE ] ; then
. $ENVFILE
D=`echo -n $IFO | cut -c 1`
sed -e "s/TST/${SITE}/g" -e "s/X-X1/${D}-${IFO}/g" -e "s/X1/${IFO}/g" \
< /usr/share/doc/advligorts-daqd/examples/daqd.standalone.sample.rc \
> $DAQFILE
fi
# required debhelper tag for extra substitution
#DEBHELPER#
exit 0
usr/include/advligorts/*.h
support/bin/build_edc_ini usr/bin
support/systemd/rts-edc.service lib/systemd/system
usr/bin/standalone_edc
lib/systemd/system-generators/fe_generator
support/bin/rts_epics_exec usr/bin
support/bin/rts_module_ctrl usr/bin
support/systemd/rts-epics@.service lib/systemd/system
support/systemd/rts-module@.service lib/systemd/system
support/systemd/rts@.target lib/systemd/system
PACKAGE_NAME="gpstime"
PACKAGE_VERSION="#MODULE_VERSION#"
BUILT_MODULE_NAME="gpstime"
DEST_MODULE_LOCATION=/extra
AUTOINSTALL=yes
MAKE="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/drv/gpstime"
CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/drv/gpstime clean"
BUILT_MODULE_LOCATION="drv/gpstime"
POST_BUILD="dkms_install_files
${PACKAGE_NAME}
${PACKAGE_VERSION}
${kernelver}
${arch}
${dkms_tree}
drv/gpstime/Module.symvers
"
src/drv/gpstime/calc_gps_offset/calc_gps_offset.py usr/share/advligorts
support/systemd/rts-local_dc.service lib/systemd/system
usr/bin/local_dc
PACKAGE_NAME="mbuf"
PACKAGE_VERSION="#MODULE_VERSION#"
BUILT_MODULE_NAME="mbuf"
DEST_MODULE_LOCATION=/extra
AUTOINSTALL=yes
POST_BUILD="dkms_install_files
${PACKAGE_NAME}
${PACKAGE_VERSION}
${kernelver}
${arch}
${dkms_tree}
Module.symvers
"
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
ENVFILE=/etc/advligorts/env
if [ -e "$ENVFILE" ]; then
. $ENVFILE || true
db_set advligorts/rcg_lib_path "$RCG_LIB_PATH"
fi
db_input high advligorts/rcg_lib_path || true
db_input high advligorts/advligorts_users || true
db_go
exit 0
var/cache/advligorts
Makefile.in usr/share/advligorts/src
NEWS usr/share/advligorts/src
config usr/share/advligorts/src
configure usr/share/advligorts/src
configure.in usr/share/advligorts/src
doc usr/share/advligorts/src
install usr/share/advligorts/src
src/drv usr/share/advligorts/src/src
src/epics usr/share/advligorts/src/src
src/epics/util/iniChk.pl usr/bin
src/fe usr/share/advligorts/src/src
src/gds usr/share/advligorts/src/src
src/include usr/share/advligorts/src/src
src/pcie_switch usr/share/advligorts/src/src
src/shmem usr/share/advligorts/src/src
src/util usr/share/advligorts/src/src
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
chgrp advligorts /var/cache/advligorts
chmod g+ws /var/cache/advligorts
ENVFILE=/etc/advligorts/env
if [ -e "$ENVFILE" ] ; then
. "$ENVFILE" || true
if [ "$SITE" ] && [ "$IFO" ] ; then
TARGET=`echo -n /opt/rtcds/${SITE}/${IFO} | tr [A-Z] [a-z]`
if ! [ -d "$TARGET" ] ; then
mkdir -p "$TARGET"
chgrp advligorts "$TARGET"
chmod g+ws "$TARGET"
fi
fi
db_get advligorts/rcg_lib_path
RCG_LIB_PATH="$RET"
cp -a -f $ENVFILE $ENVFILE.tmp
test -z "$RCG_LIB_PATH" || grep -Eq '^ *RCG_LIB_PATH=' $ENVFILE || \
echo "RCG_LIB_PATH=" >> $ENVFILE
sed -e "s|^ *RCG_LIB_PATH=.*|RCG_LIB_PATH=$RCG_LIB_PATH|" \
< $ENVFILE > $ENVFILE.tmp
mv -f $ENVFILE.tmp $ENVFILE
fi
db_get advligorts/advligorts_users
for user in $RET ; do
if ! getent passwd $user >/dev/null ; then
echo "creating '$user' user..."
adduser $user
fi
adduser $user advligorts
done
# required debhelper tag for extra substitution
#DEBHELPER#
exit 0
usr/bin/fe_simulated_streams
usr/bin/fe_stream_check
usr/bin/fe_stream_check_nds
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment