FreeBSD Bugzilla – Attachment 144369 Details for
Bug 191580
The permissions of the config file of security/duo are wrong
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Perms fix, libtool, no USE_GCC
duo.diff (text/plain), 3.69 KB, created by
Jason E. Hale
on 2014-07-03 13:39:48 UTC
(
hide
)
Description:
Perms fix, libtool, no USE_GCC
Filename:
MIME Type:
Creator:
Jason E. Hale
Created:
2014-07-03 13:39:48 UTC
Size:
3.69 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 360362) >+++ Makefile (working copy) >@@ -16,6 +16,7 @@ > CONFIGURE_ARGS= --with-pam=${PREFIX}/lib/security --sysconfdir=${PREFIX}/etc \ > --docdir=${DOCSDIR} --includedir=${PREFIX}/include/${PORTNAME} > >+USES= libtool pathfix > GNU_CONFIGURE= yes > USE_LDCONFIG= yes > SUB_FILES= pkg-message >@@ -22,33 +23,16 @@ > > OPTIONS_DEFINE= DOCS > >-.include <bsd.port.options.mk> >- >-.if ${OSVERSION} >= 1000000 >-USE_GCC= yes >-.endif >- > post-patch: > @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/login_duo/login_duo.8 > @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/pam_duo/pam_duo.8 >-.if !${PORT_OPTIONS:MDOCS} >- @${REINPLACE_CMD} -e 's|README AUTHORS CHANGES LICENSE||g' ${WRKSRC}/Makefile.in >-.endif > > post-install: > @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libduo.so.3 > @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/security/pam_duo.so >- @${INSTALL} -o sshd -g wheel -m 700 ${WRKSRC}/login_duo/login_duo.conf \ >+ ${INSTALL_DATA} ${WRKSRC}/login_duo/login_duo.conf \ > ${STAGEDIR}${PREFIX}/etc/login_duo.conf.sample >- @${INSTALL_DATA} -m 700 ${WRKSRC}/pam_duo/pam_duo.conf \ >+ ${INSTALL_DATA} ${WRKSRC}/pam_duo/pam_duo.conf \ > ${STAGEDIR}${PREFIX}/etc/pam_duo.conf.sample >- @if [ ! -f ${PREFIX}/etc/login_duo.conf ]; then \ >- ${CP} -p ${STAGEDIR}${PREFIX}/etc/login_duo.conf.sample \ >- ${STAGEDIR}${PREFIX}/etc/login_duo.conf ; \ >- fi >- @if [ ! -f ${PREFIX}/etc/pam_duo.conf ]; then \ >- ${CP} -p ${STAGEDIR}${PREFIX}/etc/pam_duo.conf.sample \ >- ${STAGEDIR}${PREFIX}/etc/pam_duo.conf ; \ >- fi > > .include <bsd.port.mk> >Index: files/patch-lib__Makefile.am >=================================================================== >--- files/patch-lib__Makefile.am (revision 360362) >+++ files/patch-lib__Makefile.am (working copy) >@@ -1,11 +0,0 @@ >---- ./lib/Makefile.am.orig 2011-03-28 16:38:36.000000000 -0400 >-+++ ./lib/Makefile.am 2011-07-17 21:47:03.000000000 -0400 >-@@ -18,7 +18,7 @@ >- >- notrans_dist_man3_MANS = duo.3 >- >--pkgconfigdir = $(libdir)/pkgconfig >-+pkgconfigdir = $(prefix)/libdata/pkgconfig >- pkgconfig_DATA = libduo.pc >- >- noinst_PROGRAMS = testduo >Index: files/patch-lib__Makefile.in >=================================================================== >--- files/patch-lib__Makefile.in (revision 360362) >+++ files/patch-lib__Makefile.in (working copy) >@@ -1,11 +0,0 @@ >---- ./lib/Makefile.in.orig 2011-07-17 21:47:09.000000000 -0400 >-+++ ./lib/Makefile.in 2011-07-17 21:47:16.000000000 -0400 >-@@ -252,7 +252,7 @@ >- libduo_la_includedir = $(includedir) >- libduo_la_include_HEADERS = duo.h >- notrans_dist_man3_MANS = duo.3 >--pkgconfigdir = $(libdir)/pkgconfig >-+pkgconfigdir = $(prefix)/libdata/pkgconfig >- pkgconfig_DATA = libduo.pc >- testduo_LDADD = libduo.la >- all: all-am >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 360362) >+++ pkg-plist (working copy) >@@ -1,18 +1,17 @@ >-@unexec if cmp -s %D/etc/login_duo.conf.sample %D/etc/login_duo.conf; then rm -f %D/etc/login_duo.conf; fi >-etc/login_duo.conf.sample >-@exec if [ ! -f %D/etc/login_duo.conf ] ; then cp -p %D/%F %B/login_duo.conf; fi >-@unexec if cmp -s %D/etc/pam_duo.conf.sample %D/etc/pam_duo.conf; then rm -f %D/etc/pam_duo.conf; fi >-etc/pam_duo.conf.sample >-@exec if [ ! -f %D/etc/pam_duo.conf ] ; then cp -p %D/%F %B/pam_duo.conf; fi >+@mode 600 >+@owner sshd >+@sample etc/login_duo.conf.sample >+@owner >+@sample etc/pam_duo.conf.sample >+@mode > include/duo/duo.h > include/duo/util.h >+lib/libduo.so.3.0.0 > lib/libduo.so.3 > lib/libduo.so >-lib/libduo.la > lib/libduo.a > libdata/pkgconfig/libduo.pc > lib/security/pam_duo.so >-lib/security/pam_duo.la > man/man3/duo.3.gz > man/man8/login_duo.8.gz > man/man8/pam_duo.8.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:
jhale
:
maintainer-approval?
(
zi
)
Actions:
View
|
Diff
Attachments on
bug 191580
:
144367
| 144369