FreeBSD Bugzilla – Attachment 222500 Details for
Bug 253567
sysutils/anacron: does not start after resume
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Use PORTNAME & COMMENT to easily copy & paste files between ports.
portvars.diff (text/plain), 2.66 KB, created by
Walter von Entferndt
on 2021-02-16 19:18:46 UTC
(
hide
)
Description:
Use PORTNAME & COMMENT to easily copy & paste files between ports.
Filename:
MIME Type:
Creator:
Walter von Entferndt
Created:
2021-02-16 19:18:46 UTC
Size:
2.66 KB
patch
obsolete
>--- Makefile.orig 2021-02-08 17:53:07.332522000 +0000 >+++ Makefile 2021-02-16 18:36:13.315520000 +0000 >@@ -3,7 +3,7 @@ > > PORTNAME= anacron > PORTVERSION= 2.3 >-PORTREVISION= 6 >+PORTREVISION= 7 > CATEGORIES= sysutils > MASTER_SITES= SF > >@@ -14,20 +14,21 @@ > LICENSE_FILE= ${WRKSRC}/COPYING > > USES= gmake >-USE_RC_SUBR= anacron >-SUB_FILES= pkg-message >+USE_RC_SUBR= ${PORTNAME} >+SUB_FILES= pkg-message pkg-plist >+SUB_LIST+= PORTNAME=${PORTNAME} COMMENT="${COMMENT}" > > post-patch: >-.for f in Makefile anacron.8 anacrontab.5 >- @${REINPLACE_CMD} -e 's|\(/etc/anacrontab\)|${PREFIX}\1|' ${WRKSRC}/${f} >+.for f in Makefile ${PORTNAME}.8 ${PORTNAME}tab.5 >+ @${REINPLACE_CMD} -e 's|\(/etc/${PORTNAME}tab\)|${PREFIX}\1|' ${WRKSRC}/${f} > .endfor > @${REINPLACE_CMD} -e 's|^CFLAGS = .*||' ${WRKSRC}/Makefile > > do-install: >- ${INSTALL_PROGRAM} ${WRKSRC}/anacron ${STAGEDIR}${PREFIX}/sbin >- ${INSTALL_MAN} ${WRKSRC}/anacron.8 ${STAGEDIR}${MAN8PREFIX}/man/man8 >- ${INSTALL_MAN} ${WRKSRC}/anacrontab.5 ${STAGEDIR}${MAN5PREFIX}/man/man5 >- ${INSTALL_DATA} ${FILESDIR}/anacrontab.sample ${STAGEDIR}${PREFIX}/etc >- @${MKDIR} ${STAGEDIR}/var/spool/anacron >+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin >+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/man/man8 >+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}tab.5 ${STAGEDIR}${MAN5PREFIX}/man/man5 >+ ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}tab.sample ${STAGEDIR}${PREFIX}/etc >+ @${MKDIR} ${STAGEDIR}/var/spool/${PORTNAME} > > .include <bsd.port.mk> >--- files/pkg-message.in.orig >+++ files/pkg-message.in >@@ -1,13 +1,18 @@ > [ > { type: install > message: <<EOM > Configuration hints: >-- Edit %%PREFIX%%/etc/anacrontab >+- Edit %%PREFIX%%/etc/%%PORTNAME%%tab > - Deactivate the 'periodic' commands in /etc/crontab >-- Add a call to anacron to /etc/crontab, like >- 0 0 * * * root %%PREFIX%%/sbin/anacron >-- Add anacron_enable="YES" to /etc/rc.conf >-- Read anacron(8) and anacrontab(5) >+- Add a call to %%PORTNAME%% to /etc/crontab, like >+ 0 0 * * * root %%PREFIX%%/sbin/%%PORTNAME%% >+- Add %%PORTNAME%%_enable="YES" to /etc/rc.conf >+ or execute one of the following commands as root: >+ service %%PORTNAME%% enable >+ sysrc %%PORTNAME%%_enable=YES >+- Read %%PORTNAME%%(8) and %%PORTNAME%%tab(5) >+- To avoid overlapping periodic(8) jobs, you may want to serialize jobs: >+ sysrc %%PORTNAME%%_flags+=" -s" > EOM > } > ] >--- /dev/null >+++ files/pkg-plist.in >@@ -0,0 +1,5 @@ >+sbin/%%PORTNAME%% >+@sample etc/%%PORTNAME%%tab.sample >+@postunexec rmdir /var/spool/%%PORTNAME%% 2>/dev/null || echo "If you are permanently removing this port, you should do a 'rm -rf /var/spool/%%PORTNAME%%'." >+man/man8/%%PORTNAME%%.8.gz >+man/man5/%%PORTNAME%%tab.5.gz
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 Diff
View Attachment As Raw
Flags:
walter.von.entferndt
:
maintainer-approval?
(
walter.von.entferndt
)
Actions:
View
|
Diff
Attachments on
bug 253567
:
222499
| 222500 |
222501
|
222554
|
223000