1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Update to 4.11

- Pass maintainership to submitter

PR:		117245
Submitted by:	Naram Qashat <cyberbotx@cyberbotx.com>
This commit is contained in:
Martin Wilke 2007-10-23 23:06:54 +00:00
parent 62e2a3ade2
commit 1e5277d0b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=201853
4 changed files with 59 additions and 24 deletions

View File

@ -6,45 +6,68 @@
#
PORTNAME= di
PORTVERSION= 4.9
PORTVERSION= 4.11
CATEGORIES= sysutils
MASTER_SITES= http://www.gentoo.com/di/ \
http://fresh.t-systems-sfr.com/unix/src/privat2/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= cyberbotx@cyberbotx.com
COMMENT= Disk Information Utility
USE_GETTEXT= yes
MAN1= di.1
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB= NLS=""
DI_BUILD_NO_NLS= 0
.else
DI_BUILD_NO_NLS= 1
PLIST_SUB= NLS="@comment "
.endif
USE_PERL5_BUILD= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700042
BROKEN= Broken with gcc 4.2
.endif
post-patch:
@${REINPLACE_CMD} -e "s|zoneid_t|zoneId_t|g" ${WRKSRC}/di.c
do-configure:
(cd ${WRKSRC}; \
CC="${CC}" CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" prefix="${PREFIX}" \
LOCALEDIR="${PREFIX}/share/locale" \
${SETENV} ${MAKE_ENV} DI_BUILD_MKCONFIG_PL=1 \
CC="${CC}" LDFLAGS="${LDFLAGS}" \
prefix="${PREFIX}" LOCALEDIR="${PREFIX}/share/locale" \
DI_BUILD_NO_NLS=${DI_BUILD_NO_NLS} \
./Build config.h)
post-configure:
@${REINPLACE_CMD} -e "s|#define _lib_zone_list 1|#undef _lib_zone_list|" ${WRKSRC}/config.h
@${REINPLACE_CMD} -e "s|#define _lib_fs_stat_dev 1|#undef _lib_fs_stat_dev|" ${WRKSRC}/config.h
@${REINPLACE_CMD} -e "s|#define _lib_getvfsstat 1|#undef _lib_getvfsstat|" ${WRKSRC}/config.h
@${REINPLACE_CMD} -e "s|#define _lib_getmnt 1|#undef _lib_getmnt|" ${WRKSRC}/config.h
@${REINPLACE_CMD} -e "s|#define _lib_mntctl 1|#undef _lib_mntctl|" ${WRKSRC}/config.h
@${REINPLACE_CMD} -e "s|#define _lib_GetDiskFreeSpace 1|#undef _lib_GetDiskFreeSpace|" ${WRKSRC}/config.h
@${REINPLACE_CMD} -e "s|#define _lib_GetDriveType 1|#undef _lib_GetDriveType|" ${WRKSRC}/config.h
@${REINPLACE_CMD} -e "s|#define _lib_GetLogicalDriveStrings 1|#undef _lib_GetLogicalDriveStrings|" ${WRKSRC}/config.h
@${REINPLACE_CMD} -e "s|#define _lib_GetVolumeInformation 1|#undef _lib_GetVolumeInformation|" ${WRKSRC}/config.h
do-build:
(cd ${WRKSRC}; \
CC="${CC}" CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" prefix="${PREFIX}" \
LOCALEDIR="${PREFIX}/share/locale" \
${SETENV} ${MAKE_ENV} \
CC="${CC}" LDFLAGS="${LDFLAGS}" \
prefix="${PREFIX}" LOCALEDIR="${PREFIX}/share/locale" \
DI_BUILD_NO_NLS=${DI_BUILD_NO_NLS} \
./Build)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/di ${PREFIX}/bin
${LN} -sf ${PREFIX}/bin/di ${PREFIX}/bin/mi
${INSTALL_MAN} ${WRKSRC}/di.1 ${PREFIX}/man/man1
.if !defined(WITHOUT_NLS)
(cd ${WRKSRC}; \
CC="${CC}" CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" prefix="${PREFIX}" \
${SETENV} ${MAKE_ENV} \
CC="${CC}" LDFLAGS="${LDFLAGS}" \
prefix="${PREFIX}" \
LOCALEDIR="${PREFIX}/share/locale" \
./Build build-po)
-(cd ${WRKSRC}/po;for i in *.po; do \
@ -57,5 +80,6 @@ do-install:
${PREFIX}/share/locale/$$j/LC_MESSAGES/di.mo; \
${RM} -f $$j.mo; \
done)
.endif
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (di-4.9.tar.gz) = d71682678fc950b64f9ffff8a7587505
SHA256 (di-4.9.tar.gz) = bd3cf4cba807011ea94489240efe7d2e3816304a237add37153aab666fde7355
SIZE (di-4.9.tar.gz) = 70462
MD5 (di-4.11.tar.gz) = d41461eb23dbe2adab9d074478240b7e
SHA256 (di-4.11.tar.gz) = 982f35998dbbaf07fe33331eb43e76d8bab2f918b004570029c16adabb9e9aae
SIZE (di-4.11.tar.gz) = 72003

View File

@ -0,0 +1,15 @@
--- di.c.old Tue Oct 23 11:48:51 2007
+++ di.c Tue Oct 23 11:49:19 2007
@@ -267,10 +267,8 @@
char *disp;
} dispTable_t;
-#if ! _lib_zone_list
-# define zoneid_t int
-# define ZONENAME_MAX 65
-#endif
+#define zoneid_t int
+#define ZONENAME_MAX 65
typedef struct {
zoneid_t zoneid;

View File

@ -1,8 +1,4 @@
bin/di
bin/mi
share/locale/de_DE/LC_MESSAGES/di.mo
share/locale/en_US/LC_MESSAGES/di.mo
@dirrmtry share/locale/de_DE/LC_MESSAGES
@dirrmtry share/locale/de_DE
@dirrmtry share/locale/en_US/LC_MESSAGES
@dirrmtry share/locale/en_US
%%NLS%%share/locale/de_DE/LC_MESSAGES/di.mo
%%NLS%%share/locale/en_US/LC_MESSAGES/di.mo