update to 3.06.0.1, development now continues on github. while here change

HOMEPAGE to https.

OK benoit@
This commit is contained in:
mestre 2021-11-04 15:12:29 +00:00
parent 0fc0d8377e
commit 8e22e55733
5 changed files with 43 additions and 40 deletions

View File

@ -1,12 +1,14 @@
# $OpenBSD: Makefile,v 1.26 2021/02/26 18:20:35 naddy Exp $
# $OpenBSD: Makefile,v 1.27 2021/11/04 15:12:29 mestre Exp $
COMMENT = Exif jpeg camera setting parser and thumbnail remover
DISTNAME = jhead-3.04
GH_ACCOUNT = Matthias-Wandel
GH_PROJECT = jhead
GH_TAGNAME = 3.06.0.1
CATEGORIES = graphics
HOMEPAGE = http://www.sentex.net/~mwandel/jhead/
MASTER_SITES = ${HOMEPAGE}
HOMEPAGE = https://www.sentex.net/~mwandel/jhead/
MAINTAINER= Benoit Lecocq <benoit@openbsd.org>

View File

@ -1,2 +1,2 @@
SHA256 (jhead-3.04.tar.gz) = 74m7z09sJe2ICIzyQqR6au3/9PCMx9wgW/PiwPEKA8k=
SIZE (jhead-3.04.tar.gz) = 67754
SHA256 (jhead-3.06.0.1.tar.gz) = XFJYw9eoQL+DHiIXTkokyx3juvRC98tz1asxtK4LAFg=
SIZE (jhead-3.06.0.1.tar.gz) = 1144608

View File

@ -1,16 +1,8 @@
$OpenBSD: patch-gpsinfo_c,v 1.7 2021/02/26 18:20:35 naddy Exp $
--- gpsinfo.c.orig Sun Dec 15 17:46:17 2019
+++ gpsinfo.c Sun Dec 15 17:48:33 2019
@@ -146,7 +146,7 @@
FmtString[3+a*7] = (char)('0'+digits);
Values[a] = ConvertAnyFormat(ValuePtr+a*ComponentSize, Format);
- }
+ }
snprintf(TempString, sizeof(TempString), FmtString, Values[0], Values[1], Values[2]);
@@ -162,8 +162,8 @@
$OpenBSD: patch-gpsinfo_c,v 1.8 2021/11/04 15:12:29 mestre Exp $
Index: gpsinfo.c
--- gpsinfo.c.orig
+++ gpsinfo.c
@@ -168,8 +168,8 @@ void ProcessGpsInfo(unsigned char * DirStart, unsigned
break;
case TAG_GPS_ALT:

View File

@ -1,7 +1,8 @@
$OpenBSD: patch-jhead_c,v 1.14 2019/12/15 17:00:12 benoit Exp $
--- jhead.c.orig Fri Nov 22 15:27:34 2019
+++ jhead.c Sun Dec 15 17:39:14 2019
@@ -165,7 +165,8 @@
$OpenBSD: patch-jhead_c,v 1.15 2021/11/04 15:12:29 mestre Exp $
Index: jhead.c
--- jhead.c.orig
+++ jhead.c
@@ -166,7 +166,8 @@ static int FileEditComment(char * TempFileName, char *
}
if (strlen(Editor) > PATH_MAX) ErrFatal("env too long");
@ -11,7 +12,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/15 17:00:12 benoit Exp $
a = system(QuotedPath);
}
@@ -272,7 +273,8 @@
@@ -273,7 +274,8 @@ static int ModifyDescriptComment(char * OutComment, ch
if (!HasScandate && !ImageInfo.DateTime[0]){
// Scan date is not in the file yet, and it doesn't have one built in. Add it.
char Temp[40];
@ -21,7 +22,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/15 17:00:12 benoit Exp $
strncat(OutComment, Temp, MAX_COMMENT_SIZE-5-strlen(OutComment));
Modified = TRUE;
}
@@ -304,8 +306,10 @@
@@ -305,8 +307,10 @@ static int AutoResizeCmdStuff(void)
if (scale < 0.4) scale = 0.4; // Don't scale down by too much.
@ -34,7 +35,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/15 17:00:12 benoit Exp $
return TRUE;
}
@@ -632,7 +636,8 @@
@@ -641,7 +645,8 @@ static void DoFileRenaming(const char * FileName)
memcpy(pat, pattern+ppos, 4);
pat[a-ppos] = 'd'; // Replace 'i' with 'd' for '%d'
pat[a-ppos+1] = '\0';
@ -44,7 +45,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/15 17:00:12 benoit Exp $
nl = strlen(num);
l = strlen(pattern+a+1);
if (ppos+nl+l+1 >= PATH_MAX) ErrFatal("str overflow");
@@ -648,7 +653,7 @@
@@ -657,7 +662,7 @@ static void DoFileRenaming(const char * FileName)
strftime(NewName, PATH_MAX, pattern, &tm);
}else{
// My favourite scheme.
@ -53,7 +54,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/15 17:00:12 benoit Exp $
tm.tm_mon+1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);
}
@@ -692,7 +697,8 @@
@@ -701,7 +706,8 @@ static void DoFileRenaming(const char * FileName)
printf("%s --> %s\n",FileName, NewName);
#ifdef _WIN32
if (RenameAssociatedFiles){
@ -63,7 +64,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/15 17:00:12 benoit Exp $
RenameAssociated(FileName, NewName);
}
#endif
@@ -726,7 +732,8 @@
@@ -735,7 +741,8 @@ static int DoAutoRotate(const char * FileName)
// Unknown orientation, but still modified.
return TRUE; // Image is still modified.
}
@ -73,7 +74,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/15 17:00:12 benoit Exp $
ApplyCommand = RotateCommand;
DoCommand(FileName, FALSE);
ApplyCommand = NULL;
@@ -745,7 +752,8 @@
@@ -754,7 +761,8 @@ static int DoAutoRotate(const char * FileName)
strcpy(ThumbTempName_out, FileName);
strcat(ThumbTempName_out, ".tho");
SaveThumbnail(ThumbTempName_in);
@ -83,7 +84,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/15 17:00:12 benoit Exp $
Argument, ThumbTempName_out, ThumbTempName_in);
if (system(RotateCommand) == 0){
@@ -773,7 +781,8 @@
@@ -782,7 +790,8 @@ static int RegenerateThumbnail(const char * FileName)
return FALSE;
}
@ -93,7 +94,7 @@ $OpenBSD: patch-jhead_c,v 1.14 2019/12/15 17:00:12 benoit Exp $
RegenThumbnail, RegenThumbnail, FileName);
if (system(ThumbnailGenCommand) == 0){
@@ -1143,7 +1152,7 @@
@@ -1152,7 +1161,7 @@ static void ProcessFile(const char * FileName)
// Print to temp buffer first to avoid putting null termination in destination.
// snprintf() would do the trick, hbut not available everywhere (like FreeBSD 4.4)

View File

@ -1,16 +1,24 @@
$OpenBSD: patch-makefile,v 1.5 2019/12/15 17:00:12 benoit Exp $
--- makefile.orig Sun Dec 15 17:42:24 2019
+++ makefile Sun Dec 15 17:44:29 2019
@@ -3,9 +3,9 @@
$OpenBSD: patch-makefile,v 1.6 2021/11/04 15:12:29 mestre Exp $
Index: makefile
--- makefile.orig
+++ makefile
@@ -1,15 +1,12 @@
#--------------------------------
OBJ=.
# jhead makefile for Unix
#--------------------------------
-OBJ=obj
+OBJ=.
SRC=.
-CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
-CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
-LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+CPPFLAGS:=$(CPPFLAGS)
+CFLAGS:=$(CFLAGS) -Wall
+LDFLAGS:=$(LDFLAGS)
all: jhead
-all: objdir jhead
-
-objdir:
- @mkdir -p obj
+all: jhead
objs = $(OBJ)/jhead.o $(OBJ)/jpgfile.o $(OBJ)/jpgqguess.o $(OBJ)/paths.o \
$(OBJ)/exif.o $(OBJ)/iptc.o $(OBJ)/gpsinfo.o $(OBJ)/makernote.o