FreeBSD Bugzilla – Attachment 191814 Details for
Bug 226795
[NEW PORT] mail/ratelimit-policyd Sender rate limit policy daemon for Postfix
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
new version of mail/ratelimit-policyd shar
ratelimit-policyd-1.0.1.shar (text/plain), 4.30 KB, created by
Miroslav Lachman
on 2018-03-25 20:12:19 UTC
(
hide
)
Description:
new version of mail/ratelimit-policyd shar
Filename:
MIME Type:
Creator:
Miroslav Lachman
Created:
2018-03-25 20:12:19 UTC
Size:
4.30 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: ># ># ratelimit-policyd ># ratelimit-policyd/pkg-descr ># ratelimit-policyd/files ># ratelimit-policyd/files/pkg-message.in ># ratelimit-policyd/distinfo ># ratelimit-policyd/Makefile ># >echo c - ratelimit-policyd >mkdir -p ratelimit-policyd > /dev/null 2>&1 >echo x - ratelimit-policyd/pkg-descr >sed 's/^X//' >ratelimit-policyd/pkg-descr << '5fb9eb721ea01893b8e6a7b11fc3d38d' >XA Sender rate limit policy daemon for Postfix writen in Perl. >XCustomized to work with modern Perl version on FreeBSD. >X >XWWW: https://github.com/MirLach/ratelimit-policyd >5fb9eb721ea01893b8e6a7b11fc3d38d >echo c - ratelimit-policyd/files >mkdir -p ratelimit-policyd/files > /dev/null 2>&1 >echo x - ratelimit-policyd/files/pkg-message.in >sed 's/^X//' >ratelimit-policyd/files/pkg-message.in << '9d2a53b73cd494a2df21ac77f580fa97' >XThis package must be integrated with Postfix to be effective: >X >X * Add new MySQL user account for ratelimit-policyd with following permissions: >X >X GRANT USAGE ON *.* TO 'policyd'@'localhost' IDENTIFIED BY '<YourPassword>'; >X GRANT SELECT, INSERT, UPDATE, DELETE ON `policyd`.* TO 'policyd'@'localhost'; >X >X * Create database 'policyd' and table 'ratelimit' >X >X mysql -u root -p < %%LOCALBASE%%/share/ratelimit-policyd/mysql-schema.sql >X >X * Edit configuration in %%LOCALBASE%%/etc/ratelimit-policyd.cfg >X >X * Enable ratelimit-policyd service in rc.conf >X >X sysrc ratelimit_policyd_enable="YES" >X >X * Start the service >X >X service ratelimit-policyd start >X >X * Add or modify the postfix data restriction class smtpd_sender_restrictions >X in main.cf: >X >X smtpd_sender_restrictions = >X check_sender_access mysql:%%LOCALBASE%%/etc/postfix/clients.cf, >X check_policy_service inet:127.0.0.1:10032 >X >X check_policy_service must be after check_sender_access (if you are using it) >X >X * Reload Postfix >X >X * See documentation in %%LOCALBASE%%/share/ratelimit-policyd/README.md >X or visit https://github.com/MirLach/ratelimit-policyd >X >9d2a53b73cd494a2df21ac77f580fa97 >echo x - ratelimit-policyd/distinfo >sed 's/^X//' >ratelimit-policyd/distinfo << '9c95d9dc4fb9252d27aca073aec53a73' >XTIMESTAMP = 1522007262 >XSHA256 (MirLach-ratelimit-policyd-1.0.1_GH0.tar.gz) = 14a3785dff86b0cf58e57220f79551ba159ee184bbb21f462c019675675d775b >XSIZE (MirLach-ratelimit-policyd-1.0.1_GH0.tar.gz) = 11218 >9c95d9dc4fb9252d27aca073aec53a73 >echo x - ratelimit-policyd/Makefile >sed 's/^X//' >ratelimit-policyd/Makefile << 'aa2780ec115f1a1b98d1559837e72a71' >X# Created by: Miroslav Lachman >X# $FreeBSD$ >X >XPORTNAME= ratelimit-policyd >XPORTVERSION= 1.0.1 >XCATEGORIES= mail >XMASTER_SITES= GH >X >XMAINTAINER= 000.fbsd@quip.cz >XCOMMENT= Sender rate limit policy daemon for Postfix >X >XLICENSE= NONE >X >XUSE_GITHUB= yes >XGH_ACCOUNT= MirLach >XGH_PROJECT= ratelimit-policyd >X#GH_TAGNAME= 65154a2 >X >XUSES+= perl5 shebangfix >X >XRUN_DEPENDS+= p5-DBD-mysql>=0:databases/p5-DBD-mysql >X >XSHEBANG_FILES= ratelimit-policyd.pl >X >XNO_BUILD= yes >X >XSUB_FILES= pkg-message >X >XPERIODIC_DAILY= etc/periodic/daily >X >XPLIST_FILES= bin/ratelimit-policyd.pl \ >X etc/rc.d/ratelimit-policyd \ >X etc/ratelimit-policyd.cfg.sample \ >X ${PERIODIC_DAILY}/535.ratelimit-policyd >X >XPORTDATA= mysql-schema.sql README.md >X >Xpost-patch: >X ${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" ${WRKSRC}/rc.d/ratelimit-policyd >X ${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" ${WRKSRC}/ratelimit-policyd.pl >X ${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" \ >X ${WRKSRC}/periodic/daily/535.ratelimit-policyd >X >Xdo-install: >X ${INSTALL_SCRIPT} ${WRKSRC}/ratelimit-policyd.pl ${STAGEDIR}${PREFIX}/bin >X ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/ratelimit-policyd ${STAGEDIR}${PREFIX}/etc/rc.d >X ${INSTALL_DATA} ${WRKSRC}/ratelimit-policyd.cfg \ >X ${STAGEDIR}${PREFIX}/etc/ratelimit-policyd.cfg.sample >X @${MKDIR} ${STAGEDIR}${DATADIR} >X ${INSTALL_DATA} ${WRKSRC}/mysql-schema.sql ${STAGEDIR}${DATADIR} >X ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DATADIR} >X >X @${MKDIR} ${STAGEDIR}${PREFIX}/${PERIODIC_DAILY} >X ${INSTALL_SCRIPT} ${WRKSRC}/periodic/daily/535.ratelimit-policyd \ >X ${STAGEDIR}${PREFIX}/${PERIODIC_DAILY} >X >X.include <bsd.port.mk> >aa2780ec115f1a1b98d1559837e72a71 >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 226795
:
191652
|
191653
|
191814
|
191815
|
192102