Created attachment 176378 [details] Patch that adds the FastDFS option Attached patch adds support for the 3rd party FastDFS module
Hi Daniel, thanks for the patch. I've found a couple hard-coded "/usr/local" values in the patch. Could you please fix this issue, as example I'd recommend to take a look on the DRIZZLE third-party module adoption.
Created attachment 176785 [details] Patch that adds the FastDFS option Changes static /usr/local to dynamic ${LOCALBASE} and ${PREFIX}
Looks better, thanks. Would you mind to do a patch for www/nginx-devel please. Thanks in advance.
Created attachment 176850 [details] Patch that adds the FastDFS option This version also covers nginx-devel
Hi Daniel, thanks for the patch for the www/nginx-devel too. I don't think I fully understand this part of the patch: +.if ${PORT_OPTIONS:MFASTDFS} + ${ECHO_CMD} @sample etc/fdfs/mod_fastdfs.conf.sample +.endif Are you going to add a record of this file to the package list? Could you please explain this. One more thing - would you mind to change the version of the module from 5a8110f57ec55ff580260cf1fc6aa152a5a4c574 to more convenient and readable 5a8110f? If so, could you please update the patch. Thanks in advance.
Created attachment 176862 [details] Patch that adds the FastDFS option Yes, I'm installing a sample config file; +.if ${PORT_OPTIONS:MFASTDFS} + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/fdfs + ${INSTALL_DATA} ${WRKSRC_fastdfs}/src/mod_fastdfs.conf ${STAGEDIR}${PREFIX}/etc/fdfs/mod_fastdfs.conf.sample +.endif The module needs to know alot of info to be able to connect to a fastdfs cluster so the author has created a separate config for the module, you only load the module itself in nginx.conf
Well, I got you. So, in this case the part of the code should looks like: +.if ${PORT_OPTIONS:MFASTDFS} + ${ECHO_CMD} @sample etc/fdfs/mod_fastdfs.conf.sample >> ${TMPPLIST} +.endif Is that right?
Created attachment 176869 [details] Patch that adds the FastDFS option Oh, that was quite the catch! Didn't see my misstake at all until you pointed it out. Updated the patch piping it to the plist
A commit references this bug: Author: osa Date: Fri Nov 18 01:06:27 UTC 2016 New revision: 426303 URL: https://svnweb.freebsd.org/changeset/ports/426303 Log: Add third-party fastdfs module. PR: 213979 Changes: head/www/nginx/Makefile head/www/nginx/distinfo head/www/nginx/files/extra-patch-fastdfs-src-config head/www/nginx-devel/Makefile head/www/nginx-devel/distinfo head/www/nginx-devel/files/extra-patch-fastdfs-src-config
I've just committed my version, thanks for report!