Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:nierlein:daily
thruk
debian.rules
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.rules of Package thruk
#!/usr/bin/make -f # -*- makefile -*- export DH_VERBOSE=1 DESTDIR=$(CURDIR)/debian/tmp/ PERLVER=$(shell perl -e 'use Config; print $$Config{version}') HTTPDCONF=$(shell if [ -d "/etc/apache2/conf-available" ]; then echo "/etc/apache2/conf-available"; else echo "/etc/apache2/conf.d"; fi ) SHELL=bash export PERL5LIB=/usr/lib/thruk/perl5:/usr/lib64/thruk/perl5 FIXPHANTOMJS=$(shell if [ -f script/phantomjs ]; then echo "fix_phantomjs_location"; else echo ""; fi ) override_dh_auto_configure: dh_auto_configure -- --prefix=/usr \ --bindir="/usr/bin" \ --datadir="/usr/share/thruk" \ --libdir="/usr/lib/thruk" \ --localstatedir="/var/lib/thruk" \ --with-tempdir="/var/cache/thruk" \ --sysconfdir="/etc/thruk" \ --mandir="/usr/share/man" \ --with-initdir="/etc/init.d" \ --with-logdir="/var/log/thruk" \ --with-logrotatedir="/etc/logrotate.d" \ --with-bashcompletedir="/etc/bash_completion.d" \ --with-thruk-user="www-data" \ --with-thruk-group="www-data" \ --with-thruk-libs="/usr/lib/thruk/perl5" \ --with-httpd-conf="$(HTTPDCONF)" \ --with-htmlurl="/thruk" echo $(HTTPDCONF)/thruk.conf >> debian/thruk-base.install echo $(HTTPDCONF)/thruk_cookie_auth_vhost.conf >> debian/thruk-base.install # make sure themes are built as this point mkdir themes/themes-available/Light/stylesheets cp /.build-srcdir/_service:download_url:Light.css themes/themes-available/Light/stylesheets/Light.css mkdir themes/themes-available/Dark/stylesheets cp /.build-srcdir/_service:download_url:Dark.css themes/themes-available/Dark/stylesheets/Dark.css test -f themes/themes-available/Light/stylesheets/Light.css || make themes test -f themes/themes-available/Light/stylesheets/Light.css || exit 1 override_dh_auto_install: local_auto_install $(FIXPHANTOMJS) local_auto_install: dh_auto_install # enable su logrotate, available since ubuntu 13.04 and debian 6 sed -i -e 's/^.*#su/ su/' debian/tmp/etc/logrotate.d/thruk-base test -f debian/tmp/usr/share/thruk/root/thruk/cache/thruk-panorama-*.js || exit 1 fix_phantomjs_location: # fix location of phantomjs mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/thruk mv debian/tmp/usr/share/thruk/script/phantomjs debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/thruk/ sed -e 's|/usr/share/thruk/script/phantomjs|/usr/lib/'$(DEB_HOST_MULTIARCH)'/thruk/phantomjs|' \ -i debian/tmp/etc/thruk/thruk.conf echo "/usr/lib/$(DEB_HOST_MULTIARCH)/thruk/phantomjs" >> debian/thruk-plugin-reporting.install echo "thruk-plugin-reporting: embedded-library usr/lib/$(DEB_HOST_MULTIARCH)/thruk/phantomjs: sqlite" >> debian/thruk-plugin-reporting.lintian-overrides echo "thruk-plugin-reporting: embedded-library usr/lib/$(DEB_HOST_MULTIARCH)/thruk/phantomjs: libpng" >> debian/thruk-plugin-reporting.lintian-overrides echo "thruk-plugin-reporting: embedded-library usr/lib/$(DEB_HOST_MULTIARCH)/thruk/phantomjs: zlib" >> debian/thruk-plugin-reporting.lintian-overrides echo "thruk-plugin-reporting: embedded-library usr/lib/$(DEB_HOST_MULTIARCH)/thruk/phantomjs: libjpeg" >> debian/thruk-plugin-reporting.lintian-overrides echo "thruk-plugin-reporting: embedded-library usr/lib/$(DEB_HOST_MULTIARCH)/thruk/phantomjs: openssl" >> debian/thruk-plugin-reporting.lintian-overrides echo "thruk-plugin-reporting: embedded-library libjpeg usr/lib/$(DEB_HOST_MULTIARCH)/thruk/phantomjs" >> debian/thruk-plugin-reporting.lintian-overrides echo "thruk-plugin-reporting: embedded-library libpng usr/lib/$(DEB_HOST_MULTIARCH)/thruk/phantomjs" >> debian/thruk-plugin-reporting.lintian-overrides echo "thruk-plugin-reporting: embedded-library openssl usr/lib/$(DEB_HOST_MULTIARCH)/thruk/phantomjs" >> debian/thruk-plugin-reporting.lintian-overrides echo "thruk-plugin-reporting: embedded-library sqlite usr/lib/$(DEB_HOST_MULTIARCH)/thruk/phantomjs" >> debian/thruk-plugin-reporting.lintian-overrides echo "thruk-plugin-reporting: embedded-library zlib usr/lib/$(DEB_HOST_MULTIARCH)/thruk/phantomjs" >> debian/thruk-plugin-reporting.lintian-overrides echo "thruk-plugin-reporting: hardening-no-relro usr/lib/$(DEB_HOST_MULTIARCH)/thruk/phantomjs" >> debian/thruk-plugin-reporting.lintian-overrides sed -e 's|phantomjs,||' -i debian/control override_dh_gencontrol: dh_gencontrol -- -Vextra:Depends=perlapi-$(PERLVER) override_dh_strip: dh_strip --exclude=phantomjs override_dh_auto_test: %: dh $@
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor