Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:p_conrad:branches
ezmlm-idx
debian.rules
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.rules of Package ezmlm-idx
#!/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=ezmlm-idx #DESTDIR=/usr/src/packages/BUILD/debian/$(NAME) DESTDIR=debian/$(NAME) DESTDIR_MY=debian/$(NAME)-mysql DESTDIR_PG=debian/$(NAME)-pgsql DESTDIR_LT=debian/$(NAME)-sqlite DESTDIR_CG=debian/$(NAME)-cgi 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)/$(NAME) CGIDIR=/src/www/cgi-bin build: build-stamp build-stamp: dh_testdir # Add here commands to compile the package. echo $(RCDIR) >conf-etc echo $(BINDIR) >conf-bin echo $(MANDIR) >conf-man echo $(LIBDIR)/$NAME >conf-lib echo /var/lib/qmail >conf-qmail echo "gcc $(CFLAGS) -I/usr/include/mysql -I/usr/include/postgresql" >conf-cc echo "gcc $(LDFLAGS) -L/usr/lib/mysql" >conf-ld make clean make all sed -i '/cat/d' MAN echo "The script ezmlm-cgi is installed as %ezcgi/ezmlm-cgi with \ permissions 0444. In order to use it, you need to make it\ SUID root. So do\ \ chmod 4755 %ezcgi/ezmlm-cgi\ \ Please see INSTALL 16-22) in this package's doc directory and the\ man page ezmlm-cgi.1 for more details on setting up and using ezmlm-cgi.\ " > INSTALL.cgi # --- 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. rm -rf $(DESTDIR) $(DESTDIR_MY) $(DESTDIR_PG) $(DESTDIR_LT) $(DESTDIR_CG) # --- 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> mkdir -p "$(DESTDIR)$(BINDIR)" mkdir -p "$(DESTDIR)$(DOCDIR)" mkdir -p "$(DESTDIR)$(LIBDIR)" mkdir -p "$(DESTDIR)$(RCDIR)" ./installer "$(DESTDIR)$(RCDIR)" <ETC ./installer "$(DESTDIR)$(BINDIR)" <BIN ./installer "$(DESTDIR)$(MANDIR)" <MAN ./installer "$(DESTDIR)$(LIBDIR)/$(NAME)" <LIB ln -s `head -n 1 conf-lang` "$(DESTDIR)$(RCDIR)/default" mkdir -p "$(DESTDIR_MY)$(DOCDIR)" mkdir -p "$(DESTDIR_MY)$(LIBDIR)/$(NAME)" mv "$(DESTDIR)$(LIBDIR)/$(NAME)/sub-mysql.so" "$(DESTDIR_MY)$(LIBDIR)/$(NAME)" install -m 0644 README.mysql "$(DESTDIR_MY)$(DOCDIR)" mkdir -p "$(DESTDIR_PG)$(DOCDIR)" mkdir -p "$(DESTDIR_PG)$(LIBDIR)/$(NAME)" mv "$(DESTDIR)$(LIBDIR)/$(NAME)/sub-pgsql.so" "$(DESTDIR_PG)$(LIBDIR)/$(NAME)" install -m 0644 README.pgsql "$(DESTDIR_PG)$(DOCDIR)" mkdir -p "$(DESTDIR_LT)$(LIBDIR)/$(NAME)" mv "$(DESTDIR)$(LIBDIR)/$(NAME)/sub-sqlite3.so" "$(DESTDIR_LT)$(LIBDIR)/$(NAME)" mkdir -p "$(DESTDIR_CG)$(CGIDIR)" mkdir -p "$(DESTDIR_CG)$(DOCDIR)" mkdir -p "$(DESTDIR_CG)$(MANDIR)/man1" mkdir -p "$(DESTDIR_CG)$(SBINDIR)" install -m 0644 ezmlm-cgi "$(DESTDIR_CG)$(SBINDIR)" ln -s "$(SBINDIR)/ezmlm-cgi" "$(DESTDIR_CG)$(CGIDIR)" install -m 0644 ezmlm-cgi.1 "$(DESTDIR_CG)$(MANDIR)/man1" install -m 0644 INSTALL.cgi ezcgirc ezcgi.css "$(DESTDIR_CG)$(DOCDIR)" # --- 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 BLURB CHANGES* FAQ INSTALL README README.std ChangeLog THANKS TODO UPGRADE DOWNGRADE ezmlmrc.template LICENSE 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