Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:p_conrad
nullmailer
debian.rules
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.rules of Package nullmailer
#!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This is the debhelper compatibility version to use. export DH_COMPAT=5 CFLAGS = -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif NAME=nullmailer #DESTDIR=/usr/src/packages/BUILD/debian/$(NAME) DESTDIR=debian/$(NAME) PREFIX=/usr BINDIR=$(PREFIX)/bin ifeq "$(shell uname -m)" "x86_64" LIBDIR=$(PREFIX)/lib64 else LIBDIR=$(PREFIX)/lib endif SBINDIR=$(PREFIX)/sbin MANDIR=$(PREFIX)/share/man DATADIR=$(PREFIX)/share/$(NAME) DOCDIR=$(PREFIX)/share/doc/$(NAME) SYSCONFDIR=/etc RCDIR=$(SYSCONFDIR)/init.d CGIDIR=/src/www/cgi-bin build: build-stamp build-stamp: dh_testdir # Add here commands to compile the package. export CFLAGS="%{optflags} $PIE" CXXFLAGS="%{optflags} $PIE" LDFLAGS="%{optflags} $pie" LDXXFLAGS="%{optflags} $pie" ./configure --prefix="$(PREFIX)" --mandir="$(MANDIR)" --sysconfdir="$(SYSCONFDIR)" \ --libexecdir="$(PREFIX)/lib" --localstatedir=/var --enable-tls CFLAGS="-fPIE" CXXFLAGS="-fPIE" LDFLAGS="-pie" LDXXFLAGS="-pie" make for i in doc/nullmailer-queue.8 doc/nullmailer-send.8; do \ if [ ! -r "$$i.orig" ]; then cp "$$i" "$$i.orig"; fi; \ sed 's=/var/nullmailer/=/var/spool/nullmailer/=;s=/usr/local/etc=$(sysconfdir)=;s=/usr/local/libexec=%{_libexecdir}=' <"$$i.orig" >"$$i"; \ done # --- end custom part for compiling touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ -r Makefile ] && make clean || /bin/true rm -rf $(DESTDIR) # --- end custom part for cleaning up dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package # The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/<nameOfPackage> make DESTDIR="$(shell pwd)/$(DESTDIR)" install rm "$(DESTDIR)$(BINDIR)"/nullmailer-smtpd mkdir -p "$(DESTDIR)$(PREFIX)/lib" ln -s ../sbin/sendmail "$(DESTDIR)$(PREFIX)/lib" install -m 0644 ../SOURCES/mailq.1 "$(DESTDIR)$(MANDIR)/man1" mkdir -p "$(DESTDIR)/var/log/nullmailer" install -m 0755 -D scripts/nullmailer.run "$(DESTDIR)$(PREFIX)/lib/nullmailer/service/run" install -m 0755 -D scripts/nullmailer-log.run "$(DESTDIR)$(PREFIX)/lib/nullmailer/service/log/run" install -m 0644 -D ../SOURCES/apparmor.nullmailer "$(DESTDIR)$(SYSCONFDIR)/apparmor.d/usr.lib.nullmailer.service" # --- end custom part for installing # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot # dh_installdebconf dh_installdocs AUTHORS BUGS COPYING INSTALL NEWS README ../SOURCES/README.SUSE TODO dh_installexamples dh_installmenu # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit dh_installcron dh_installman dh_installinfo # dh_undocumented dh_installchangelogs dh_link dh_strip --dbg-package=$(NAME)-dbg dh_compress dh_fixperms # dh_makeshlibs dh_installdeb # dh_perl dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install
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