FreeBSD Bugzilla – Attachment 68110 Details for
Bug 100214
[New port] net/elog: A fast and lightweight, extremly customizable weblog
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 20.78 KB, created by
David Otto
on 2006-07-13 16:10:17 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
David Otto
Created:
2006-07-13 16:10:17 UTC
Size:
20.78 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># elog ># elog/Makefile ># elog/pkg-descr ># elog/pkg-plist ># elog/files ># elog/files/elogd.in ># elog/files/patch-Makefile ># elog/files/pkg-deinstall.in ># elog/files/pkg-install.in ># elog/distinfo ># >echo c - elog >mkdir -p elog > /dev/null 2>&1 >echo x - elog/Makefile >sed 's/^X//' >elog/Makefile << 'END-of-elog/Makefile' >X# New ports collection makefile for: elog >X# Date created: 8 July 2006 >X# Whom: David Otto <ottodavid@gmx.net> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= elog >XDISTVERSION= 2.6.1-4 >XCATEGORIES= net >XMASTER_SITES= http://midas.psi.ch/elog/download/tar/ >X >XMAINTAINER= ottodavid@gmx.net >XCOMMENT= A fast and lightweight, extremly customizable weblog >X >XMAN1= elog.1 elconv.1 >XMAN8= elogd.8 >XUSE_RC_SUBR= elogd >XSUB_FILES= pkg-install pkg-deinstall >XSUB_LIST= LOGBOOKDIR=${LOGBOOKDIR} >XPORTDOCS= README doc/* >X >XLOGBOOKDIR?= www/elog >XPLIST_SUB+= DRUPAL_BASE=${DRUPAL_BASE} >X >XUSE_GMAKE= yes >XWRKSRC= ${WRKDIR}/elog-2.6.1 >XMAKE_ENV= LOGBOOKDIR=${LOGBOOKDIR} >X >Xpre-fetch: >X @${ECHO_MSG} >X @${ECHO_MSG} "You may change the data directory with the option LOGBOOKDIR" >X @${ECHO_MSG} "Set NOPORTDOCS if you do not need any documentation" >X @${ECHO_MSG} >X >Xpre-install: >X PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL >X >Xpost-install: >X.if !defined(NOPORTDOCS) >X ${MKDIR} ${DOCSDIR} >X ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} >X ${INSTALL_MAN} -d ${WRKSRC}/doc ${DOCSDIR} >X.endif >X >X PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL >X >X.include <bsd.port.mk> >END-of-elog/Makefile >echo x - elog/pkg-descr >sed 's/^X//' >elog/pkg-descr << 'END-of-elog/pkg-descr' >XThe Electronic Logbook (ELOG) provides a Web interface to manage notes. >XIts general purpose is to make it easy for people to put and access >Xinformation online; in the form of short, time stamped text messages >Xwith optional HTML markup for presentation, and optional file >Xattachments. Its features include: >X * Has its own daemon, no need for a full-fledged server (e.g. Apache). >X * Being a Web application, search, browse and edit notes from >X anywhere. >X * Includes a tool to create and access notes from the command >X line. >X * Stores notes as simple as plain text; no special formatting. >X * Uses customizable mail-like headers (RFC 2822) to categorize >X the notes. >X * Supports RSS feeds for entries. >X * Exports to CSV (comma-separated-values). >X * File attachments (e.g. images, archives). >X * Supports workgroups, shared logbooks. >X * Message threads, mail notifications for a >X forum-like usage. >X * Hosts one or more logbooks stored in separate >X sections on the host. >X * Remotely clone logbooks on separate servers. >X >XWWW: http://midas.psi.ch/elog/ >END-of-elog/pkg-descr >echo x - elog/pkg-plist >sed 's/^X//' >elog/pkg-plist << 'END-of-elog/pkg-plist' >Xbin/elog >Xbin/elconv >Xsbin/elogd >Xetc/elogd.cfg.sample >Xshare/elog/scripts/elcode.js >X@dirrm share/elog/scripts >Xshare/elog/resources/elcode_english.html >Xshare/elog/resources/elcode_zh_CN-GB2312.html >Xshare/elog/resources/elcode_zh_CN-UTF8.html >Xshare/elog/resources/elogd-zh_CN-GB2312.cfg >Xshare/elog/resources/elogd-zh_CN-UTF8.cfg >Xshare/elog/resources/eloghelp_brazilian.html >Xshare/elog/resources/eloghelp_danish.html >Xshare/elog/resources/eloghelp_dutch.html >Xshare/elog/resources/eloghelp_english.html >Xshare/elog/resources/eloghelp_french.html >Xshare/elog/resources/eloghelp_german.html >Xshare/elog/resources/eloghelp_italian.html >Xshare/elog/resources/eloghelp_japanese.html >Xshare/elog/resources/eloghelp_spanish.html >Xshare/elog/resources/eloghelp_turkish.html >Xshare/elog/resources/eloghelp_zh_CN-GB2312.html >Xshare/elog/resources/eloghelp_zh_CN-UTF8.html >Xshare/elog/resources/eloglang.brazilian >Xshare/elog/resources/eloglang.bulgarian >Xshare/elog/resources/eloglang.danish >Xshare/elog/resources/eloglang.dutch >Xshare/elog/resources/eloglang.french >Xshare/elog/resources/eloglang.german >Xshare/elog/resources/eloglang.italian >Xshare/elog/resources/eloglang.japanese >Xshare/elog/resources/eloglang.spanish >Xshare/elog/resources/eloglang.turkish >Xshare/elog/resources/eloglang.zh_CN-GB2312 >Xshare/elog/resources/eloglang.zh_CN-UTF8 >X@dirrm share/elog/resources >Xshare/elog/themes/default/all_entry.png >Xshare/elog/themes/default/cal.png >Xshare/elog/themes/default/cal_next.png >Xshare/elog/themes/default/cal_prev.png >Xshare/elog/themes/default/clock.png >Xshare/elog/themes/default/compact.css >Xshare/elog/themes/default/default.css >Xshare/elog/themes/default/delete.png >Xshare/elog/themes/default/down.png >Xshare/elog/themes/default/edit.png >Xshare/elog/themes/default/elog.png >Xshare/elog/themes/default/entry.png >Xshare/elog/themes/default/favicon.ico >Xshare/elog/themes/default/favicon.png >Xshare/elog/themes/default/first.png >Xshare/elog/themes/default/last.png >Xshare/elog/themes/default/lock.png >Xshare/elog/themes/default/new_entry.png >Xshare/elog/themes/default/next.png >Xshare/elog/themes/default/previous.png >Xshare/elog/themes/default/reply.png >Xshare/elog/themes/default/stop.png >Xshare/elog/themes/default/tiny.css >Xshare/elog/themes/default/up.png >Xshare/elog/themes/default/icons/arrow.png >Xshare/elog/themes/default/icons/astonished.png >Xshare/elog/themes/default/icons/attn.png >Xshare/elog/themes/default/icons/biggrin.png >Xshare/elog/themes/default/icons/bulb.png >Xshare/elog/themes/default/icons/confused.png >Xshare/elog/themes/default/icons/cool.png >Xshare/elog/themes/default/icons/crying.png >Xshare/elog/themes/default/icons/elc_arrow.png >Xshare/elog/themes/default/icons/elc_astonished.png >Xshare/elog/themes/default/icons/elc_biggrin.png >Xshare/elog/themes/default/icons/elc_bold.png >Xshare/elog/themes/default/icons/elc_center.png >Xshare/elog/themes/default/icons/elc_code.png >Xshare/elog/themes/default/icons/elc_confused.png >Xshare/elog/themes/default/icons/elc_cool.png >Xshare/elog/themes/default/icons/elc_crying.png >Xshare/elog/themes/default/icons/elc_email.png >Xshare/elog/themes/default/icons/elc_frown.png >Xshare/elog/themes/default/icons/elc_happy.png >Xshare/elog/themes/default/icons/elc_heading.png >Xshare/elog/themes/default/icons/elc_image.png >Xshare/elog/themes/default/icons/elc_italic.png >Xshare/elog/themes/default/icons/elc_list.png >Xshare/elog/themes/default/icons/elc_mad.png >Xshare/elog/themes/default/icons/elc_pleased.png >Xshare/elog/themes/default/icons/elc_quote.png >Xshare/elog/themes/default/icons/elc_smile.png >Xshare/elog/themes/default/icons/elc_tongue.png >Xshare/elog/themes/default/icons/elc_underline.png >Xshare/elog/themes/default/icons/elc_url.png >Xshare/elog/themes/default/icons/elc_wink.png >Xshare/elog/themes/default/icons/elc_yawn.png >Xshare/elog/themes/default/icons/eld_arrow.png >Xshare/elog/themes/default/icons/eld_astonished.png >Xshare/elog/themes/default/icons/eld_biggrin.png >Xshare/elog/themes/default/icons/eld_bold.png >Xshare/elog/themes/default/icons/eld_center.png >Xshare/elog/themes/default/icons/eld_code.png >Xshare/elog/themes/default/icons/eld_confused.png >Xshare/elog/themes/default/icons/eld_cool.png >Xshare/elog/themes/default/icons/eld_crying.png >Xshare/elog/themes/default/icons/eld_email.png >Xshare/elog/themes/default/icons/eld_frown.png >Xshare/elog/themes/default/icons/eld_happy.png >Xshare/elog/themes/default/icons/eld_heading.png >Xshare/elog/themes/default/icons/eld_image.png >Xshare/elog/themes/default/icons/eld_italic.png >Xshare/elog/themes/default/icons/eld_list.png >Xshare/elog/themes/default/icons/eld_mad.png >Xshare/elog/themes/default/icons/eld_pleased.png >Xshare/elog/themes/default/icons/eld_quote.png >Xshare/elog/themes/default/icons/eld_smile.png >Xshare/elog/themes/default/icons/eld_tongue.png >Xshare/elog/themes/default/icons/eld_underline.png >Xshare/elog/themes/default/icons/eld_url.png >Xshare/elog/themes/default/icons/eld_wink.png >Xshare/elog/themes/default/icons/eld_yawn.png >Xshare/elog/themes/default/icons/frown.png >Xshare/elog/themes/default/icons/happy.png >Xshare/elog/themes/default/icons/icon1.gif >Xshare/elog/themes/default/icons/icon1.png >Xshare/elog/themes/default/icons/icon10.gif >Xshare/elog/themes/default/icons/icon10.png >Xshare/elog/themes/default/icons/icon11.gif >Xshare/elog/themes/default/icons/icon11.png >Xshare/elog/themes/default/icons/icon12.gif >Xshare/elog/themes/default/icons/icon12.png >Xshare/elog/themes/default/icons/icon13.gif >Xshare/elog/themes/default/icons/icon13.png >Xshare/elog/themes/default/icons/icon14.gif >Xshare/elog/themes/default/icons/icon14.png >Xshare/elog/themes/default/icons/icon2.gif >Xshare/elog/themes/default/icons/icon2.png >Xshare/elog/themes/default/icons/icon3.gif >Xshare/elog/themes/default/icons/icon3.png >Xshare/elog/themes/default/icons/icon4.gif >Xshare/elog/themes/default/icons/icon4.png >Xshare/elog/themes/default/icons/icon5.gif >Xshare/elog/themes/default/icons/icon5.png >Xshare/elog/themes/default/icons/icon6.gif >Xshare/elog/themes/default/icons/icon6.png >Xshare/elog/themes/default/icons/icon7.gif >Xshare/elog/themes/default/icons/icon7.png >Xshare/elog/themes/default/icons/icon8.gif >Xshare/elog/themes/default/icons/icon8.png >Xshare/elog/themes/default/icons/icon9.gif >Xshare/elog/themes/default/icons/icon9.png >Xshare/elog/themes/default/icons/mad.png >Xshare/elog/themes/default/icons/paper.png >Xshare/elog/themes/default/icons/pleased.png >Xshare/elog/themes/default/icons/question.png >Xshare/elog/themes/default/icons/smile.png >Xshare/elog/themes/default/icons/thmbdown.png >Xshare/elog/themes/default/icons/thmbup.png >Xshare/elog/themes/default/icons/tongue.png >Xshare/elog/themes/default/icons/wink.png >Xshare/elog/themes/default/icons/yawn.png >X@dirrm share/elog/themes/default/icons >Xshare/elog/themes/default/arrow.png >Xshare/elog/themes/default/astonished.png >Xshare/elog/themes/default/attn.png >Xshare/elog/themes/default/biggrin.png >Xshare/elog/themes/default/bulb.png >Xshare/elog/themes/default/confused.png >Xshare/elog/themes/default/cool.png >Xshare/elog/themes/default/crying.png >Xshare/elog/themes/default/elc_arrow.png >Xshare/elog/themes/default/elc_astonished.png >Xshare/elog/themes/default/elc_biggrin.png >Xshare/elog/themes/default/elc_bold.png >Xshare/elog/themes/default/elc_center.png >Xshare/elog/themes/default/elc_code.png >Xshare/elog/themes/default/elc_confused.png >Xshare/elog/themes/default/elc_cool.png >Xshare/elog/themes/default/elc_crying.png >Xshare/elog/themes/default/elc_email.png >Xshare/elog/themes/default/elc_frown.png >Xshare/elog/themes/default/elc_happy.png >Xshare/elog/themes/default/elc_heading.png >Xshare/elog/themes/default/elc_image.png >Xshare/elog/themes/default/elc_italic.png >Xshare/elog/themes/default/elc_list.png >Xshare/elog/themes/default/elc_mad.png >Xshare/elog/themes/default/elc_pleased.png >Xshare/elog/themes/default/elc_quote.png >Xshare/elog/themes/default/elc_smile.png >Xshare/elog/themes/default/elc_tongue.png >Xshare/elog/themes/default/elc_underline.png >Xshare/elog/themes/default/elc_url.png >Xshare/elog/themes/default/elc_wink.png >Xshare/elog/themes/default/elc_yawn.png >Xshare/elog/themes/default/eld_arrow.png >Xshare/elog/themes/default/eld_astonished.png >Xshare/elog/themes/default/eld_biggrin.png >Xshare/elog/themes/default/eld_bold.png >Xshare/elog/themes/default/eld_center.png >Xshare/elog/themes/default/eld_code.png >Xshare/elog/themes/default/eld_confused.png >Xshare/elog/themes/default/eld_cool.png >Xshare/elog/themes/default/eld_crying.png >Xshare/elog/themes/default/eld_email.png >Xshare/elog/themes/default/eld_frown.png >Xshare/elog/themes/default/eld_happy.png >Xshare/elog/themes/default/eld_heading.png >Xshare/elog/themes/default/eld_image.png >Xshare/elog/themes/default/eld_italic.png >Xshare/elog/themes/default/eld_list.png >Xshare/elog/themes/default/eld_mad.png >Xshare/elog/themes/default/eld_pleased.png >Xshare/elog/themes/default/eld_quote.png >Xshare/elog/themes/default/eld_smile.png >Xshare/elog/themes/default/eld_tongue.png >Xshare/elog/themes/default/eld_underline.png >Xshare/elog/themes/default/eld_url.png >Xshare/elog/themes/default/eld_wink.png >Xshare/elog/themes/default/eld_yawn.png >Xshare/elog/themes/default/frown.png >Xshare/elog/themes/default/happy.png >Xshare/elog/themes/default/icon1.gif >Xshare/elog/themes/default/icon1.png >Xshare/elog/themes/default/icon10.gif >Xshare/elog/themes/default/icon10.png >Xshare/elog/themes/default/icon11.gif >Xshare/elog/themes/default/icon11.png >Xshare/elog/themes/default/icon12.gif >Xshare/elog/themes/default/icon12.png >Xshare/elog/themes/default/icon13.gif >Xshare/elog/themes/default/icon13.png >Xshare/elog/themes/default/icon14.gif >Xshare/elog/themes/default/icon14.png >Xshare/elog/themes/default/icon2.gif >Xshare/elog/themes/default/icon2.png >Xshare/elog/themes/default/icon3.gif >Xshare/elog/themes/default/icon3.png >Xshare/elog/themes/default/icon4.gif >Xshare/elog/themes/default/icon4.png >Xshare/elog/themes/default/icon5.gif >Xshare/elog/themes/default/icon5.png >Xshare/elog/themes/default/icon6.gif >Xshare/elog/themes/default/icon6.png >Xshare/elog/themes/default/icon7.gif >Xshare/elog/themes/default/icon7.png >Xshare/elog/themes/default/icon8.gif >Xshare/elog/themes/default/icon8.png >Xshare/elog/themes/default/icon9.gif >Xshare/elog/themes/default/icon9.png >Xshare/elog/themes/default/mad.png >Xshare/elog/themes/default/paper.png >Xshare/elog/themes/default/pleased.png >Xshare/elog/themes/default/question.png >Xshare/elog/themes/default/smile.png >Xshare/elog/themes/default/thmbdown.png >Xshare/elog/themes/default/thmbup.png >Xshare/elog/themes/default/tongue.png >Xshare/elog/themes/default/wink.png >Xshare/elog/themes/default/yawn.png >X@dirrm share/elog/themes/default >X@dirrm share/elog/themes/ >X@dirrm share/elog/ >END-of-elog/pkg-plist >echo c - elog/files >mkdir -p elog/files > /dev/null 2>&1 >echo x - elog/files/elogd.in >sed 's/^X//' >elog/files/elogd.in << 'END-of-elog/files/elogd.in' >X#!/bin/sh >X >X# PROVIDE: elogd >X# REQUIRE: network >X# >X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf >X# to enable this service: >X# >X# elogd_enable (bool): Set to NO by default. >X# Set it to YES to enable doormand. >X# elogd_config (path): Set to %%PREFIX%%/etc/elogd.cfg >X# by default. >X# elogd_flags (args): See elogd(1) for possible options >X >X. %%RC_SUBR%% >X >Xname="elogd" >Xrcvar=${name}_enable >X >Xcommand=%%PREFIX%%/sbin/${name} >Xpidfile=/var/run/${name}.pid >X >Xload_rc_config $name >X >X: ${elogd_enable="NO"} >X: ${elogd_config="%%PREFIX%%/etc/elogd.cfg"} >X >Xcommand_args="-D -c $elogd_config -s %%PREFIX%%/share/elog/ -f ${pidfile} -d %%PREFIX%%/%%LOGBOOKDIR%%" >X >Xrun_rc_command "$1" >END-of-elog/files/elogd.in >echo x - elog/files/patch-Makefile >sed 's/^X//' >elog/files/patch-Makefile << 'END-of-elog/files/patch-Makefile' >X--- Makefile.orig Sun Jul 9 16:26:32 2006 >X+++ Makefile Tue Jul 11 20:03:40 2006 >X@@ -16,10 +16,11 @@ >X MANDIR = $(ROOT)$(PREFIX)/man >X endif >X >X-ELOGDIR = $(ROOT)$(PREFIX)/elog >X+#LOGBOOKDIR is set by the Ports Makefile >X+ELOGDIR = $(ROOT)$(PREFIX)/share/elog >X DESTDIR = $(ROOT)$(PREFIX)/bin >X SDESTDIR = $(ROOT)$(PREFIX)/sbin >X-RCDIR = $(ROOT)/etc/rc.d/init.d >X+RCDIR = $(ROOT)$(PREFIX)/etc >X >X ############################################################# >X >X@@ -80,8 +81,9 @@ >X strlcpy.o: $(MXMLDIR)/strlcpy.c $(MXMLDIR)/strlcpy.h >X $(CC) $(CFLAGS) -c -o strlcpy.o $(MXMLDIR)/strlcpy.c >X >X+#FIXME: Dont know why it dosent work with CFLAGS(gcc hangs up) >X elogd: src/elogd.c regex.o mxml.o strlcpy.o >X- $(CC) $(CFLAGS) -I$(MXMLDIR) -o elogd src/elogd.c regex.o mxml.o strlcpy.o $(LIBS) >X+ $(CC) -I$(MXMLDIR) -o elogd src/elogd.c regex.o mxml.o strlcpy.o $(LIBS) >X >X debug: src/elogd.c regex.o mxml.o strlcpy.o >X $(CC) -g -I$(MXMLDIR) -o elogd src/elogd.c regex.o mxml.o strlcpy.o $(LIBS) >X@@ -106,7 +108,6 @@ >X install: $(EXECS) >X @$(INSTALL) -m 0755 -d $(DESTDIR) $(SDESTDIR) $(MANDIR)/man1/ $(MANDIR)/man8/ >X @$(INSTALL) -m 0755 -d $(ELOGDIR)/scripts/ $(ELOGDIR)/resources/ $(ELOGDIR)/themes/default/icons >X- @$(INSTALL) -m 0755 -d $(ELOGDIR)/logbooks/demo >X @$(INSTALL) -v -m 0755 -o ${BINOWNER} -g ${BINGROUP} elog elconv $(DESTDIR) >X @$(INSTALL) -v -m 0755 -o ${BINOWNER} -g ${BINGROUP} elogd $(SDESTDIR) >X @$(INSTALL) -v -m 0644 man/elog.1 man/elconv.1 $(MANDIR)/man1/ >X@@ -121,23 +122,20 @@ >X @$(INSTALL) -m 0644 themes/default/icons/* $(ELOGDIR)/themes/default/icons/ >X @for file in `find themes/default -type f | grep -v .svn` ; \ >X do \ >X- $(INSTALL) -D -m 0644 $$file $(ELOGDIR)/themes/default/`basename $$file` ;\ >X+ $(INSTALL) -C -m 0644 $$file $(ELOGDIR)/themes/default/`basename $$file` ;\ >X done >X >X- @echo "Installing example logbook to $(ELOGDIR)/logbooks/demo" >X- @if [ ! -f $(ELOGDIR)/logbooks/demo ]; then \ >X- $(INSTALL) -v -m 0644 logbooks/demo/* $(ELOGDIR)/logbooks/demo ; \ >X+ @echo "Installing example logbook to $(LOGBOOKDIR)/demo" >X+ @if [ ! -f ${PREFIX}/$(LOGBOOKDIR)/demo ]; then \ >X+ $(INSTALL) -v -d -m 0644 ${PREFIX}/$(LOGBOOKDIR)/demo ; \ >X+ $(INSTALL) -v -m 0644 logbooks/demo/* ${PREFIX}/$(LOGBOOKDIR)/demo ; \ >X fi >X >X- @sed "s#\@PREFIX\@#$(PREFIX)#g" elogd.init_template > elogd.init >X- @$(INSTALL) -v -D -m 0755 elogd.init $(RCDIR)/elogd >X >X- @if [ ! -f $(ELOGDIR)/elogd.cfg ]; then \ >X- $(INSTALL) -v -m 644 elogd.cfg $(ELOGDIR)/elogd.cfg ; \ >X+ @if [ ! -f $(RCDIR)/elogd.cfg.sample ]; then \ >X+ $(INSTALL) -v -m 644 elogd.cfg $(RCDIR)/elogd.cfg.sample ; \ >X fi >X >X-restart: >X- $(RCDIR)/elogd restart >X clean: >X -$(RM) *~ $(EXECS) regex.o mxml.o strlcpy.o locext >X >END-of-elog/files/patch-Makefile >echo x - elog/files/pkg-deinstall.in >sed 's/^X//' >elog/files/pkg-deinstall.in << 'END-of-elog/files/pkg-deinstall.in' >X#! /bin/sh >X# pkg-deinstall script for elog >X# original taken from the mail/dovecot port >X# >X# $FreeBSD$ >X >Xask() { >X local question default answer >X >X question=$1 >X default=$2 >X if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then >X read -p "${question} [${default}]? " answer >X fi >X echo ${answer:-${default}} >X} >X >Xyesno() { >X local question default answer >X >X question=$1 >X default=$2 >X while :; do >X answer=$(ask "${question}" "${default}") >X case "${answer}" in >X [Yy]*) return 0;; >X [Nn]*) return 1;; >X esac >X echo "Please answer yes or no." >X done >X} >X >Xdelete_account() { >X local u >X >X u=$1 >X if yesno "Do you want me to remove user \"${u}\"" n; then >X pw userdel -n ${u} >X echo "Done." >X fi >X} >X >Xcase $2 in >X >XDEINSTALL) >Xif cmp -s %%PREFIX%%/etc/elogd.cfg.sample %%PREFIX%%/etc/elogd.cfg; then >X rm -rf %%PREFIX%%/etc/elogd.cfg; >Xfi >Xif ps -axc | grep -qw elogd; then >X if yesno "elogd is still running. Shall I stop it?" y; then >X killall elogd >X sleep 2 >X else >X echo "OK ... I hope you know what you are doing." >X fi >X fi >X >X delete_account elog >X echo >X echo "Please remember to remove %%LOGBOOKDIR%% and elogd.cfg if you" >X echo "don't want to use it in future." >X echo >Xesac >END-of-elog/files/pkg-deinstall.in >echo x - elog/files/pkg-install.in >sed 's/^X//' >elog/files/pkg-install.in << 'END-of-elog/files/pkg-install.in' >X#!/bin/sh >X# pkg-install script for elog >X# original taken from the mail/dovecot port >X# >X# $FreeBSD$ >X >Xask() { >X local question default answer >X >X question=$1 >X default=$2 >X if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then >X read -p "${question} [${default}]? " answer >X fi >X echo ${answer:-${default}} >X} >X >Xyesno() { >X local question default answer >X >X question=$1 >X default=$2 >X while :; do >X answer=$(ask "${question}" "${default}") >X case "${answer}" in >X [Yy]*) return 0;; >X [Nn]*) return 1;; >X esac >X echo "Please answer yes or no." >X done >X} >X >Xmake_account() { >X local u g gcos >X >X u=$1 >X g=$2 >X gcos=$3 >X >X if pw group show "${g}" >/dev/null 2>&1; then >X echo "You already have a group \"${g}\", so I will use it." >X else >X echo "You need a group \"${g}\"." >X if which -s pw && yesno "Would you like me to create it" y >X then >X pw groupadd ${g} || exit >X echo "Done." >X else >X echo "Please create it, and try again." >X exit 1 >X fi >X fi >X >X if pw user show "${u}" >/dev/null 2>&1; then >X echo "You already have a user \"${u}\", so I will use it." >X else >X echo "You need a user \"${u}\"." >X if which -s pw && yesno "Would you like me to create it" y >X then >X pw useradd ${u} -g ${g} -c "${gcos}" -d /nonexistent -s /sbin/nologin -h - || exit >X echo "Done." >X else >X echo "Please create it, and try again." >X exit 1 >X fi >X fi >X} >X >Xcase $2 in >X >XPRE-INSTALL) >X make_account elog elog "elog" >X ;; >X >XPOST-INSTALL) >X chown -R elog:elog %%PREFIX%%/%%LOGBOOKDIR%% >X chmod -R 0700 %%PREFIX%%/%%LOGBOOKDIR%% >X >X if [ ! -f %%PREFIX%%/etc/elogd.cfg ]; then \ >X cp -p %%PREFIX%%/etc/elogd.cfg.sample %%PREFIX%%/etc/elogd.cfg ; \ >X fi >X ;; >Xesac >END-of-elog/files/pkg-install.in >echo x - elog/distinfo >sed 's/^X//' >elog/distinfo << 'END-of-elog/distinfo' >XMD5 (elog-2.6.1-4.tar.gz) = 29d99643466fab5c0347a5bd0f612d87 >XSHA256 (elog-2.6.1-4.tar.gz) = e340882a2f53589d70918327940d1126db04da0a98abaf2e94640f22590cc9d6 >XSIZE (elog-2.6.1-4.tar.gz) = 629901 >END-of-elog/distinfo >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 100214
: 68110