diff options
author | alex <alex@FreeBSD.org> | 2001-08-21 19:50:01 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 2001-08-21 19:50:01 +0000 |
commit | b3f8207bc171f95d7c0ce51d4171c0051859cd16 (patch) | |
tree | 7fc2e8168ec8f3267b9a39fa36b724f830e278e3 /sysutils/xcdroast/Makefile | |
parent | ed01dc74c0f7b76a4fcb510a41f22fd168e5ecdf (diff) | |
download | FreeBSD-ports-b3f8207bc171f95d7c0ce51d4171c0051859cd16.zip FreeBSD-ports-b3f8207bc171f95d7c0ce51d4171c0051859cd16.tar.gz |
More fixes:
- Don't hardcode "gtk12-config", but use GTK_CONFIG and IMLIB_CONFIG vars.
- patch improvement
- plist fixes
- remove added group cdwrite on deinstall
- chown root:cdwrite various utilities used by xcdroast, such as
cdrecord, and set them chmod 4710. I don't know if I like this.
Opinions (Security Officer?)?
Diffstat (limited to 'sysutils/xcdroast/Makefile')
-rw-r--r-- | sysutils/xcdroast/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sysutils/xcdroast/Makefile b/sysutils/xcdroast/Makefile index 915c11d..df8f779 100644 --- a/sysutils/xcdroast/Makefile +++ b/sysutils/xcdroast/Makefile @@ -21,23 +21,25 @@ USE_GMAKE= yes USE_GTK= yes USE_IMLIB= yes +MAKE_ENV+= GTK_CONFIG="${GTK_CONFIG}" \ + IMLIB_CONFIG="${IMLIB_CONFIG}" + post-patch: for i in xcdroast.h Makefile ; do \ ${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/$$i ; \ done -post-install: + for i in Makefile ; do \ + ${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/$$i ; \ + done - ${LN} -sf ${LOCALBASE}/bin/cdrecord ${PREFIX}/lib/xcdroast-0.98/bin/cdrecord - ${LN} -sf ${LOCALBASE}/bin/mkisofs ${PREFIX}/lib/xcdroast-0.98/bin/mkisofs - ${LN} -sf ${LOCALBASE}/bin/cdda2wav ${PREFIX}/lib/xcdroast-0.98/bin/cdda2wav - ${LN} -sf ${LOCALBASE}/bin/readcd ${PREFIX}/lib/xcdroast-0.98/bin/readcd +post-install: /usr/sbin/pw groupadd -n cdwrite - for i in cdrecord cdda2wav mkisofs readcd ; do \ - ${CHOWN} root:cdwrite ${PREFIX}/bin/$i && \ - ${CHMOD} 4710 ${PREFIX}/bin/$i ; \ + for i in cdrecord cdda2wav mkisofs readcd; do \ + ${CHOWN} root:cdwrite ${LOCALBASE}/bin/$$i ; \ + ${CHMOD} 4710 ${LOCALBASE}/bin/$$i ; \ done ${CHOWN} root:cdwrite ${PREFIX}/lib/xcdroast-0.98/bin/xcdrwrap |