Bug 118089 - [patch] add rc script to port dns/dnsproxy
Summary: [patch] add rc script to port dns/dnsproxy
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Andrej Zverev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-16 21:00 UTC by Olli Hauer
Modified: 2007-12-12 09:14 UTC (History)
0 users

See Also:


Attachments
file.diff (216 bytes, patch)
2007-11-16 21:00 UTC, Olli Hauer
no flags Details | Diff
file.diff (1.32 KB, patch)
2007-11-16 21:00 UTC, Olli Hauer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olli Hauer 2007-11-16 21:00:03 UTC
There is no rc script for the port dns/dnsproxy so i wrote one.

Also copy a sample config file to $PREFIX/etc/

Fix: +USE_RC_SUBR?=  dnsproxy
+
 MAN1=          dnsproxy.1
-PLIST_FILES=   sbin/dnsproxy
+PLIST_FILES=   sbin/dnsproxy \
+               etc/dnsproxy.conf.sample
+
+CONFIG_DIR=    ${PREFIX}/etc
+SAMPLE_DNSPROXY_CONF= ${CONFIG_DIR}/dnsproxy.conf.sample
+
+SUB_FILES=     pkg-message

 .include <bsd.port.pre.mk>

@@ -26,8 +34,16 @@
        ${RM} ${WRKSRC}/libevent/compat/sys/queue.h
 .endif

+post-install:
+       @${CAT} ${PKGMESSAGE}
+
 do-install:
        @${INSTALL_PROGRAM} ${WRKSRC}/dnsproxy ${PREFIX}/sbin
        @${INSTALL_MAN} ${WRKSRC}/dnsproxy.1 ${MAN1PREFIX}/man/man1
+       @if [ ! -f ${SAMPLE_DNSPROXY_CONF} ]; then \
+               ${ECHO_MSG} "Installing ${SAMPLE_DNSPROXY_CONF} file."; \
+               ${ECHO_MSG} "${INSTALL_DATA} -v -p ${WRKSRC}/dnsproxy.conf ${SAMPLE_DNSPROXY_CONF}"; \
+               ${INSTALL_DATA} -v -p ${WRKSRC}/dnsproxy.conf ${SAMPLE_DNSPROXY_CONF}; \
+       fi

 .include <bsd.port.post.mk>
How-To-Repeat: install the old port without patch
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-11-16 21:00:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->az

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Olli Hauer 2007-12-09 16:40:14 UTC
arrrg, plead do a

$> sed 's/spamd/dnsproxy/' dnsproxy.in

for the rc script before commit.

Any change to commit this during port freeze or getting any feedback?

Regards,
   olli
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-12-12 08:48:35 UTC
az          2007-12-12 08:48:31 UTC

  FreeBSD ports repository

  Modified files:
    dns/dnsproxy         Makefile 
  Added files:
    dns/dnsproxy/files   dnsproxy.in pkg-message.in 
  Log:
  - Add rc.d script
  - Add tip in pkg-message
  - Provide sample config in %%ETCDIR%%
  - BUMP port revision
  
  PR:             ports/118089
  Submitted by:           olli hauer <ohauer at gmx.de>
  
  Revision  Changes    Path
  1.6       +10 -1     ports/dns/dnsproxy/Makefile
  1.1       +32 -0     ports/dns/dnsproxy/files/dnsproxy.in (new)
  1.1       +14 -0     ports/dns/dnsproxy/files/pkg-message.in (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Andrej Zverev freebsd_committer freebsd_triage 2007-12-12 09:14:16 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!