1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- Update to 0.7

PR:             ports/108064
Submitted by:   Eric P. Scott
Approved by:    maintainer (implicit)
This commit is contained in:
Martin Wilke 2007-01-18 08:19:43 +00:00
parent 85795f2e39
commit 0587c58348
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182705
15 changed files with 398 additions and 48 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= isomaster
PORTVERSION= 0.6
PORTREVISION= 1
PORTVERSION= 0.7
CATEGORIES= sysutils
MASTER_SITES= http://littlesvr.ca/isomaster/releases/
@ -15,17 +14,24 @@ MAINTAINER= farrokhi@FreeBSD.org
COMMENT= GTK2 (bootable) CD ISO Image editor
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GNOME= gtk20 pkgconfig intlhack gnomehier
USE_GMAKE= yes
USE_GETTEXT= yes
INSTALLS_ICON= yes
ALL_TARGET= ${PORTNAME}
MAKE_ENV= PREFIX=${PREFIX}
MAKE_ARGS= CFLAGS="${CFLAGS}"
CFLAGS+= ${PTHREAD_CFLAGS} ${PTHREAD_LIBS:S/"//g} \
-D_FILE_OFFSET_BITS=64 \
`pkg-config --cflags gtk+-2.0`
`pkg-config --cflags gtk+-2.0` \
-DICONPATH=\\\"${DATADIR}/icons\\\"
.if !defined(WITHOUT_NLS)
CFLAGS+= -DLOCALEDIR=\\\"${PREFIX}/share/locale\\\"
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
MAN1= isomaster.1
post-install:
${MKDIR} ${PREFIX}/share/applications
@ -33,10 +39,4 @@ post-install:
${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/icons/isomaster.png ${PREFIX}/share/pixmaps/isomaster.png
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= does not compile on 4.x
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (isomaster-0.6.tar.bz2) = a098b7879fe109cc28fa501050998446
SHA256 (isomaster-0.6.tar.bz2) = b2e14c090000ca01df9962ae1f986454467ebfa774729a9279459d578eff7f1c
SIZE (isomaster-0.6.tar.bz2) = 151174
MD5 (isomaster-0.7.tar.bz2) = ecc0a033211bb61c18a0bdde5612f2c9
SHA256 (isomaster-0.7.tar.bz2) = f72472173be1c69ce74249a956fe7cad80ce0563a97dd0cbc1fa098a24c851d7
SIZE (isomaster-0.7.tar.bz2) = 161558

View File

@ -1,11 +1,28 @@
--- Makefile.orig Tue Dec 12 12:08:11 2006
+++ Makefile Tue Dec 12 12:08:20 2006
@@ -24,7 +24,7 @@
GTKLIBS = `pkg-config --libs gtk+-2.0`
GTKFLAGS = `pkg-config --cflags gtk+-2.0`
# the _FILE_OFFSET_BITS=64 is to enable stat() for large files
-GLOBALFLAGS = -D_FILE_OFFSET_BITS=64 -Wall
+GLOBALFLAGS = ${CFLAGS}
GLOBALDEPS = bk/bk.h Makefile
--- Makefile.orig Thu Jan 11 16:37:43 2007
+++ Makefile
@@ -47,7 +47,7 @@
isomaster: lib iniparser translations isomaster.o window.o browser.o fsbrowser.o isobrowser.o error.o about.o settings.o boot.o $(GLOBALDEPS)
OBJECTS = isomaster.o window.o browser.o fsbrowser.o isobrowser.o error.o about.o settings.o boot.o
-all: lib iniparser translations isomaster man
+all: lib iniparser translations isomaster
isomaster: $(OBJECTS) bk/bk.a iniparser-2.15/libiniparser.a
$(CC) $(OBJECTS) bk/bk.a iniparser-2.15/libiniparser.a $(CFLAGS) $(CPPFLAGS) `pkg-config --libs gtk+-2.0`-o isomaster
@@ -92,14 +92,14 @@
cd po && $(MAKE) install
endif
$(INSTALL) -d $(DESTDIR)$(MYMANPATH)
- $(INSTALL) -m 644 isomaster.1.gz $(DESTDIR)$(MYMANPATH)
+ $(INSTALL) -m 644 isomaster.1 $(DESTDIR)$(MYMANPATH)
uninstall:
$(RM) $(DESTDIR)$(BINPATH)/isomaster
$(RM) $(DESTDIR)$(ICONPATH)/isomaster.png
$(RM) $(DESTDIR)$(ICONPATH)/folder-new-tango.png
$(RM) $(DESTDIR)$(ICONPATH)/add2-kearone.png
- $(RM) $(DESTDIR)$(ICONPATH)/extract-kearone.png
+ $(RM) $(DESTDIR)$(ICONPATH)/extract2-kearone.png
ifndef WITHOUT_NLS
cd po && $(MAKE) uninstall
endif

View File

@ -1,11 +0,0 @@
--- bk/Makefile.orig Tue Dec 12 12:11:07 2006
+++ bk/Makefile Tue Dec 12 12:11:22 2006
@@ -2,7 +2,7 @@
GLOBALDEPS = Makefile bk.h
# the _FILE_OFFSET_BITS=64 is to enable stat() for large files
# DEBUG and -g only used during development
-GLOBALFLAGS = -D_FILE_OFFSET_BITS=64 -Wall
+GLOBALFLAGS = ${CFLAGS}
bk.a: $(OBJECTS)
ar -cr bk.a $(OBJECTS)

View File

@ -1,10 +0,0 @@
--- bk/bk.h.orig Mon Dec 11 15:55:38 2006
+++ bk/bk.h Mon Dec 11 15:56:01 2006
@@ -22,6 +22,7 @@
#include <stdbool.h>
#include <stdlib.h>
+#include <unistd.h>
#include "bkError.h"

View File

@ -0,0 +1,10 @@
--- bk/bkExtract.c.orig Sun Jan 7 20:00:36 2007
+++ bk/bkExtract.c
@@ -223,6 +223,7 @@
else
{
printf("trying to extract something that's not a file or directory, ignored\n");fflush(NULL);
+ rc = BKERROR_WRONG_EXTRACT_FILE;
}
if(rc <= 0)

View File

@ -0,0 +1,34 @@
--- bk/bkPath.c.orig Sun Jan 7 20:00:36 2007
+++ bk/bkPath.c
@@ -110,7 +110,7 @@
int count;
int srcLen;
int lastCharIndex;
- int firstCharIndex;
+ int firstCharIndex=0;
bool lastCharFound;
int count2;
@@ -162,6 +162,9 @@
{
int count;
int pathStrLen;
+ int numChildrenDone;
+ int nextChildLen;
+ const char* nextChild;
pathStrLen = strlen(strPath);
@@ -186,9 +189,9 @@
if(pathPath->children == NULL)
return BKERROR_OUT_OF_MEMORY;
- int numChildrenDone = 0;
- int nextChildLen = 0;
- const char* nextChild = &(strPath[1]);
+ numChildrenDone = 0;
+ nextChildLen = 0;
+ nextChild = &(strPath[1]);
for(count = 1; count <= pathStrLen; count++)
{
if(strPath[count] == '/' || (strPath[count] == '\0' && strPath[count - 1] != '/'))

View File

@ -0,0 +1,42 @@
--- bk/bkRead.c.orig Thu Dec 28 16:48:10 2006
+++ bk/bkRead.c
@@ -46,6 +46,7 @@
{
int rc;
struct stat statStruct;
+ int len;
volInfo->imageForReading = open(filename, O_RDONLY);
if(volInfo->imageForReading == -1)
@@ -62,7 +63,7 @@
volInfo->imageForReadingInode = statStruct.st_ino;
/* skip the first 150 sectors if the image is an NRG */
- int len = strlen(filename);
+ len = strlen(filename);
if( (filename[len - 3] == 'N' || filename[len - 3] == 'n') &&
(filename[len - 2] == 'R' || filename[len - 2] == 'r') &&
(filename[len - 1] == 'G' || filename[len - 1] == 'g') )
@@ -105,6 +106,11 @@
unsigned realRootLoc; /* location of the root dr inside root dir */
unsigned char recordLen; /* length of rood dr */
unsigned char sPsUentry[7]; /* su entry SP */
+
+ off_t locationOfNextDescriptor;
+ unsigned bootCatalogLocation; /* logical sector number */
+ char elToritoSig[24];
+ unsigned char bootMediaType;
/* will always have this unless image is broken */
volInfo->filenameTypes = FNTYPE_9660;
@@ -224,10 +230,6 @@
/* END SKIP all extra copies of pvd */
/* TRY read boot record */
- off_t locationOfNextDescriptor;
- unsigned bootCatalogLocation; /* logical sector number */
- char elToritoSig[24];
- unsigned char bootMediaType;
locationOfNextDescriptor = lseek(volInfo->imageForReading, 0, SEEK_CUR) + 2048;

View File

@ -0,0 +1,56 @@
--- bk/bkSort.c.orig Sat Dec 23 17:55:20 2006
+++ bk/bkSort.c
@@ -26,7 +26,7 @@
int rightLen;
int count;
bool resultFound;
- bool rc;
+ bool rc=false;
leftLen = strlen(leftStr);
rightLen = strlen(rightStr);
@@ -61,6 +61,8 @@
void sortDir(DirToWrite* dir, int filenameType)
{
BaseToWrite* child;
+ BaseToWrite** outerPtr;
+ BaseToWrite** innerPtr;
child = dir->children;
while(child != NULL)
@@ -71,9 +73,6 @@
child = child->next;
}
- BaseToWrite** outerPtr;
- BaseToWrite** innerPtr;
-
outerPtr = &(dir->children);
while(*outerPtr != NULL)
{
@@ -90,19 +89,23 @@
if( (*outerPtr)->next != *innerPtr )
{
+ BaseToWrite* oldInnerNext;
+
*outerPtr = inner;
*innerPtr = outer;
- BaseToWrite* oldInnerNext = inner->next;
+ oldInnerNext = inner->next;
inner->next = outer->next;
outer->next = oldInnerNext;
}
else
{
+ BaseToWrite* oldInnerNext = inner->next;
+
*outerPtr = inner;
innerPtr = &(inner->next);
- BaseToWrite* oldInnerNext = inner->next;
+ oldInnerNext = inner->next;
inner->next = outer;
outer->next = oldInnerNext;
}

View File

@ -0,0 +1,28 @@
--- boot.c.orig Thu Jan 11 16:42:31 2007
+++ boot.c Wed Jan 17 14:35:49 2007
@@ -48,10 +48,11 @@
if(gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT)
{
+ char* lastBootRecordDir;
filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
/* RECORD last boot record dir */
- char* lastBootRecordDir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog));
+ lastBootRecordDir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog));
if(GBLappSettings.lastBootRecordDir != NULL &&
strlen(lastBootRecordDir) > strlen(GBLappSettings.lastBootRecordDir))
@@ -162,10 +163,11 @@
if(dialogResponse == GTK_RESPONSE_ACCEPT)
{
+ char* lastBootRecordDir;
filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
/* RECORD last boot record dir */
- char* lastBootRecordDir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog));
+ lastBootRecordDir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog));
if(GBLappSettings.lastBootRecordDir != NULL &&
strlen(lastBootRecordDir) > strlen(GBLappSettings.lastBootRecordDir))

View File

@ -0,0 +1,18 @@
--- fsbrowser.c.orig Thu Dec 28 05:44:19 2006
+++ fsbrowser.c Wed Jan 17 14:27:07 2007
@@ -419,6 +419,7 @@
void refreshFsView(void)
{
char* fsCurrentDir; /* for changeFsDirectory() */
+ GdkRectangle visibleRect;
fsCurrentDir = malloc(strlen(GBLfsCurrentDir) + 1);
if(fsCurrentDir == NULL)
@@ -426,7 +427,6 @@
strcpy(fsCurrentDir, GBLfsCurrentDir);
/* remember scroll position */
- GdkRectangle visibleRect;
gtk_tree_view_get_visible_rect(GTK_TREE_VIEW(GBLfsTreeView), &visibleRect);
changeFsDirectory(fsCurrentDir);

View File

@ -0,0 +1,108 @@
--- isobrowser.c.orig Sun Jan 7 14:11:34 2007
+++ isobrowser.c Wed Jan 17 14:31:16 2007
@@ -57,6 +57,7 @@
void addToIsoCbk(GtkButton *button, gpointer data)
{
GtkTreeSelection* selection;
+ char sizeStr[20];
if(!GBLisoPaneActive)
/* no iso open */
@@ -73,7 +74,6 @@
}
/* iso size label */
- char sizeStr[20];
GBLisoSize = 35845;
//if(GBLvolInfo.filenameTypes & FNTYPE_JOLIET)
GBLisoSize += 2048;
@@ -354,6 +354,7 @@
void deleteFromIsoCbk(GtkButton *button, gpointer data)
{
GtkTreeSelection* selection;
+ char sizeStr[20];
if(!GBLisoPaneActive)
/* no iso open */
@@ -370,7 +371,6 @@
}
/* iso size label */
- char sizeStr[20];
GBLisoSize = 35845;
//if(GBLvolInfo.filenameTypes & FNTYPE_JOLIET)
GBLisoSize += 2048;
@@ -712,6 +712,7 @@
{
int rc;
GtkWidget* warningDialog;
+ char sizeStr[20];
if(GBLisoChangesProbable && !confirmCloseIso())
return TRUE;
@@ -738,7 +739,6 @@
GBLappSettings.filenameTypesToWrite = FNTYPE_9660 | FNTYPE_ROCKRIDGE | FNTYPE_JOLIET;
/* iso size label */
- char sizeStr[20];
GBLisoSize = 35845;
//if(GBLvolInfo.filenameTypes & FNTYPE_JOLIET)
GBLisoSize += 2048;
@@ -763,6 +763,7 @@
{
int rc;
GtkWidget* warningDialog;
+ char sizeStr[20];
closeIso();
@@ -840,7 +841,6 @@
/* END READ entire directory tree */
/* iso size label */
- char sizeStr[20];
GBLisoSize = 35845;
//if(GBLvolInfo.filenameTypes & FNTYPE_JOLIET)
GBLisoSize += 2048;
@@ -896,10 +896,11 @@
if(dialogRespose == GTK_RESPONSE_ACCEPT)
{
+ char* lastIsoDir;
filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
/* RECORD last iso dir */
- char* lastIsoDir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog));
+ lastIsoDir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog));
if(GBLappSettings.lastIsoDir != NULL && strlen(lastIsoDir) > strlen(GBLappSettings.lastIsoDir))
{
@@ -955,6 +956,7 @@
void refreshIsoView(void)
{
char* isoCurrentDir; /* for changeIsoDirectory() */
+ GdkRectangle visibleRect;
isoCurrentDir = malloc(strlen(GBLisoCurrentDir) + 1);
if(isoCurrentDir == NULL)
@@ -963,7 +965,6 @@
strcpy(isoCurrentDir, GBLisoCurrentDir);
/* remember scroll position */
- GdkRectangle visibleRect;
gtk_tree_view_get_visible_rect(GTK_TREE_VIEW(GBLisoTreeView), &visibleRect);
changeIsoDirectory(isoCurrentDir);
@@ -1083,10 +1084,11 @@
if(dialogResponse == GTK_RESPONSE_ACCEPT)
{
+ char* lastIsoDir;
filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
/* RECORD last iso dir */
- char* lastIsoDir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog));
+ lastIsoDir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog));
if(GBLappSettings.lastIsoDir != NULL && strlen(lastIsoDir) > strlen(GBLappSettings.lastIsoDir))
{

View File

@ -0,0 +1,30 @@
--- settings.c.orig Thu Jan 11 16:37:43 2007
+++ settings.c Wed Jan 17 14:34:49 2007
@@ -165,6 +165,7 @@
{
char* userHomeDir;
int pathLen;
+ DIR* openDirTest;
userHomeDir = getenv("HOME");
if(userHomeDir == NULL)
@@ -181,7 +182,6 @@
}
/* MAKE sure userHomeDir is a valid directory */
- DIR* openDirTest;
openDirTest = opendir(userHomeDir);
if(openDirTest == NULL)
@@ -222,9 +222,9 @@
GBLsettingsDictionary = iniparser_load(configFileName);
if(GBLsettingsDictionary == NULL)
{
- printWarning("failed to open config file for reading, trying to create");
-
int newConfigFile;
+
+ printWarning("failed to open config file for reading, trying to create");
newConfigFile = creat(configFileName, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if(newConfigFile <= 0)

View File

@ -0,0 +1,21 @@
--- window.c.orig Sun Jan 7 16:08:02 2007
+++ window.c Wed Jan 17 14:26:01 2007
@@ -73,6 +73,8 @@
guint accelKey;
GdkModifierType accelModifier;
GClosure *closure = NULL;
+ GtkWidget* submenu;
+ GtkWidget* rootSubmenu;
/* KEYBOARD accelerators */
accelGroup = gtk_accel_group_new();
@@ -222,9 +224,6 @@
gtk_widget_show(menuItem);
g_signal_connect(G_OBJECT(menuItem), "activate",
G_CALLBACK(deleteBootRecordCbk), NULL);
-
- GtkWidget* submenu;
- GtkWidget* rootSubmenu;
rootSubmenu = gtk_image_menu_item_new_from_stock(GTK_STOCK_ADD, NULL);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), rootSubmenu);

View File

@ -1,9 +1,16 @@
bin/isomaster
share/applications/isomaster.desktop
%%DATADIR%%/icons/add2-kearone.png
%%DATADIR%%/icons/extract-kearone.png
%%DATADIR%%/icons/extract2-kearone.png
%%DATADIR%%/icons/folder-new-tango.png
%%DATADIR%%/icons/isomaster.png
%%NLS%%share/locale/bg/LC_MESSAGES/isomaster.mo
%%NLS%%share/locale/de/LC_MESSAGES/isomaster.mo
%%NLS%%share/locale/fr/LC_MESSAGES/isomaster.mo
%%NLS%%share/locale/pl/LC_MESSAGES/isomaster.mo
%%NLS%%share/locale/ru/LC_MESSAGES/isomaster.mo
%%NLS%%share/locale/sq/LC_MESSAGES/isomaster.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/isomaster.mo
share/pixmaps/isomaster.png
@dirrmtry share/pixmaps
@dirrm %%DATADIR%%/icons