diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/dkms.conf.in | 10 | ||||
-rw-r--r-- | misc/pcilib.in | 9 | ||||
-rw-r--r-- | misc/pcilib.sysconfig.in | 12 | ||||
-rw-r--r-- | misc/pcilib_api.service.in | 2 | ||||
-rw-r--r-- | misc/pcilib_html.service.in | 2 | ||||
-rw-r--r-- | misc/rpmlintrc | 8 |
6 files changed, 32 insertions, 11 deletions
diff --git a/misc/dkms.conf.in b/misc/dkms.conf.in new file mode 100644 index 0000000..2e647a9 --- /dev/null +++ b/misc/dkms.conf.in @@ -0,0 +1,10 @@ +POST_INSTALL="make -C driver/ install_symvers KERNELVER=$kernelver KERNELDIR=$kernel_source_dir" +MAKE="make -C driver/ KERNELDIR=/lib/modules/${kernelver}/build" +CLEAN="make -C driver/ clean" +BUILT_MODULE_NAME=pciDriver +BUILT_MODULE_LOCATION=driver/ +PACKAGE_NAME=${PACKAGE_NAME} +PACKAGE_VERSION=${CPACK_PACKAGE_VERSION} +DEST_MODULE_LOCATION[0]="/extra" +REMAKE_INITRD=no +AUTOINSTALL=yes diff --git a/misc/pcilib.in b/misc/pcilib.in deleted file mode 100644 index 9b7352c..0000000 --- a/misc/pcilib.in +++ /dev/null @@ -1,9 +0,0 @@ -# API server parameters -API_SERVER_DEVICE="/dev/fpga0" -API_SERVER_MODEL="test" - -# HTML server parameters -HTML_SERVER_PORT=5000 - -#Scripts directory -PCILIB_SCRIPTS_DIR="${PCILIB_PY_SERVER_INSTALL_DIR}/scripts" diff --git a/misc/pcilib.sysconfig.in b/misc/pcilib.sysconfig.in new file mode 100644 index 0000000..65edeb3 --- /dev/null +++ b/misc/pcilib.sysconfig.in @@ -0,0 +1,12 @@ +# Common parameters +SERVER_DEVICE="/dev/fpga0" +SERVER_MODEL="test" + +# API server parameters +API_SERVER_PORT=9000 + +# HTML server parameters +HTML_SERVER_PORT=5000 + +#Scripts directory +PCILIB_SCRIPTS_DIR="${PCILIB_SERVER_DIR}/scripts" diff --git a/misc/pcilib_api.service.in b/misc/pcilib_api.service.in index 291a3e0..297772b 100644 --- a/misc/pcilib_api.service.in +++ b/misc/pcilib_api.service.in @@ -6,7 +6,7 @@ After=network.target nss-lookup.target [Service] Type=simple EnvironmentFile=/etc/sysconfig/pcilib -ExecStart=${PYTHON_EXECUTABLE} ${PCILIB_PY_SERVER_INSTALL_DIR}/pcilib_api_server.py -d $API_SERVER_DEVICE -m $API_SERVER_MODEL +ExecStart=${PYTHON_EXECUTABLE} ${PCILIB_SERVER_DIR}/pcilib_api_server.py -d SERVER_DEVICE -m $SERVER_MODEL -p $API_SERVER_PORT [Install] WantedBy=multi-user.target diff --git a/misc/pcilib_html.service.in b/misc/pcilib_html.service.in index 634d9c7..7f03e77 100644 --- a/misc/pcilib_html.service.in +++ b/misc/pcilib_html.service.in @@ -8,7 +8,7 @@ After=pcilib_api.service [Service] Type=simple EnvironmentFile=/etc/sysconfig/pcilib -ExecStart=${PYTHON_EXECUTABLE} ${PCILIB_PY_SERVER_INSTALL_DIR}/pcilib_html_server.py -p $HTML_SERVER_PORT -e +ExecStart=${PYTHON_EXECUTABLE} ${PCILIB_SERVER_DIR}/pcilib_html_server.py -d $SERVER_DEVICE -m $SERVER_MODEL -p $HTML_SERVER_PORT -e --api-server-port $API_SERVER_PORT [Install] WantedBy=multi-user.target diff --git a/misc/rpmlintrc b/misc/rpmlintrc new file mode 100644 index 0000000..d79a8b5 --- /dev/null +++ b/misc/rpmlintrc @@ -0,0 +1,8 @@ +addFilter("devel-file-in-non-devel-package.*/usr/src/pciDriver") +addFilter("no-manual-page-for-binary") +addFilter("files-duplicate /usr/share/doc/packages/libpcilib-devel/html/") +addFilter("files-duplicate /usr/share/pcilib.*/pyserver/static/codebase/imgs/dhxtree_skyblue/") +addFilter("suse-filelist-forbidden-fhs23 /usr/src/pciDriver") + +# uthash +addFilter("libpcilib.* shared-lib-calls-exit /usr/lib.*/libpcilib") |