Import wsoundprefs 1.1.1.

Submitted by Peter Stromberg <home@wilfried.net>.

WMSound Server Preferences Program.
This commit is contained in:
naddy 2001-01-09 21:01:14 +00:00
parent 68a1a6828b
commit db92fb4316
12 changed files with 225 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/01/09 21:01:14 naddy Exp $
DISTNAME= WSoundPrefs-1.1.1
PKGNAME= ${DISTNAME:L}
CATEGORIES= audio
NEED_VERSION= 1.336
MASTER_SITES= ftp://shadowmere.student.utwente.nl/pub/WindowMaker/
HOMEPAGE= http://shadowmere.student.utwente.nl/
MAINTAINER= Peter Stromberg <home@wilfried.net>
BUILD_DEPENDS= wmaker::x11/windowmaker
LIB_DEPENDS= PropList.2::devel/libproplist \
wsound:audio/wsoundserver
#RUN_DEPENDS= wmaker::x11/windowmaker
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE= imake noman
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/wsoundprefs
${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/wsoundprefs
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (WSoundPrefs-1.1.1.tar.gz) = 34b004471154d3879a9d3f3155ab438a
RMD160 (WSoundPrefs-1.1.1.tar.gz) = c9793dd9c6b100f9de3fa9b2771c684ac890016e
SHA1 (WSoundPrefs-1.1.1.tar.gz) = 444571543e7a076cc49ee484dbcfd0aefc184316

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_Imakefile,v 1.1.1.1 2001/01/09 21:01:14 naddy Exp $
--- src/Imakefile.orig Mon Oct 18 10:35:58 1999
+++ src/Imakefile Tue Jan 9 21:43:40 2001
@@ -5,9 +5,7 @@ SUBDIRS = xpm tiff
ICONS = WSoundPrefs.xpm WSoundPrefs.tiff
-CC = gcc
-
-BINDIR = /Apps/WSoundPrefs.app
+BINDIR = /usr/local/GNUstep/Apps/WSoundPrefs.app
XCOMM EFENCELIB = -lefence
EFENCELIB =

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_PLFunctions_c,v 1.1.1.1 2001/01/09 21:01:14 naddy Exp $
--- src/PLFunctions.c.orig Mon Jun 14 09:28:19 1999
+++ src/PLFunctions.c Tue Jan 9 21:43:40 2001
@@ -178,7 +178,7 @@ SetIntegerForKey(int value, char *defaul
proplist_t object;
char buffer[128];
- sprintf(buffer, "%i", value);
+ snprintf(buffer, sizeof(buffer), "%i", value);
object = PLMakeString(buffer);
SetObjectForKey(object, defaultName);

View File

@ -0,0 +1,57 @@
$OpenBSD: patch-src_SoundEvents_c,v 1.1.1.1 2001/01/09 21:01:14 naddy Exp $
--- src/SoundEvents.c.orig Wed Jan 19 15:35:15 2000
+++ src/SoundEvents.c Tue Jan 9 21:43:40 2001
@@ -200,7 +200,7 @@ browseClick(WMWidget *w, void *data)
WMSetButtonEnabled(panel->sndsetsaveB, NO);
if ((strcmp(panel->lastBrowseDir,"\0") == 0)) {
- strcpy(path, wexpandpath("~/GNUstep/Library/WindowMaker/Sounds"));
+ strlcpy(path, wexpandpath("~/GNUstep/Library/WindowMaker/Sounds"), sizeof(path));
spath = wmalloc(strlen(path)+2);
strcpy(spath, path);
}
@@ -216,7 +216,7 @@ browseClick(WMWidget *w, void *data)
char *filename;
filename = WMGetFilePanelFileName(browseP);
- strcpy(panel->lastBrowseDir,(getPathFromName(filename)));
+ strlcpy(panel->lastBrowseDir, (getPathFromName(filename)), sizeof(panel->lastBrowseDir));
WMSetTextFieldText(panel->sndfileT,checkSoundPath(filename));
SetStringForKey(WMGetTextFieldText(panel->sndfileT), eventkey[WMGetPopUpButtonSelectedItem(panel->sndevntP)]);
free(filename);
@@ -243,7 +243,7 @@ loadClick(WMWidget *w, void *data)
WMSetButtonEnabled(panel->sndsetsaveB, NO);
if ((strcmp(panel->lastLoadDir,"\0") == 0)) {
- strcpy(path, wexpandpath("~/GNUstep/Library/WindowMaker/SoundSets"));
+ strlcpy(path, wexpandpath("~/GNUstep/Library/WindowMaker/SoundSets"), sizeof(path));
spath = wmalloc(strlen(path)+2);
strcpy(spath, path);
}
@@ -259,7 +259,7 @@ loadClick(WMWidget *w, void *data)
char *filename;
filename = WMGetFilePanelFileName(loadP);
- strcpy(panel->lastLoadDir,(getPathFromName(filename)));
+ strlcpy(panel->lastLoadDir, (getPathFromName(filename)), sizeof(panel->lastLoadDir));
newset = PLGetProplistWithPath(filename);
if(!newset)
@@ -297,7 +297,7 @@ saveClick(WMWidget *w, void *data)
WMSetButtonEnabled(panel->sndsetsaveB, NO);
if ((strcmp(panel->lastSaveDir,"\0") == 0)) {
- strcpy(path, wexpandpath("~/GNUstep/Library/WindowMaker/SoundSets"));
+ strlcpy(path, wexpandpath("~/GNUstep/Library/WindowMaker/SoundSets"), sizeof(path));
spath = wmalloc(strlen(path)+2);
strcpy(spath, path);
}
@@ -312,7 +312,7 @@ saveClick(WMWidget *w, void *data)
if (WMRunModalFilePanelForDirectory(saveP, panel->win, spath , NULL, NULL)) {
char *filename = NULL;
filename = WMGetFilePanelFileName(saveP);
- strcpy(panel->lastSaveDir,(getPathFromName(filename)));
+ strlcpy(panel->lastSaveDir, (getPathFromName(filename)), sizeof(panel->lastSaveDir));
file = fopen (filename, "w+");
if (file) {

View File

@ -0,0 +1,71 @@
$OpenBSD: patch-src_WSoundPrefs_c,v 1.1.1.1 2001/01/09 21:01:14 naddy Exp $
--- src/WSoundPrefs.c.orig Sat Mar 4 11:46:11 2000
+++ src/WSoundPrefs.c Tue Jan 9 21:43:41 2001
@@ -431,7 +431,7 @@ Initialize(WMScreen *scr)
panel->versionL = WMCreateLabel(panel->infoFrm);
WMResizeWidget(panel->versionL, 216, 12);
WMMoveWidget(panel->versionL, 6, 10);
- sprintf(text, "WSoundPrefs %s for WM %s", WVERSION, WMVERSION);
+ snprintf(text, sizeof(text), "WSoundPrefs %s for WM %s", WVERSION, WMVERSION);
WMSetLabelText(panel->versionL, text);
WMSetLabelTextAlignment(panel->versionL, WALeft);
WMSetLabelFont(panel->versionL, font);
@@ -440,7 +440,7 @@ Initialize(WMScreen *scr)
panel->wingsL = WMCreateLabel(panel->infoFrm);
WMResizeWidget(panel->wingsL, 216, 12);
WMMoveWidget(panel->wingsL, 6, 24);
- sprintf(text, "WINGs Version %d", sysinfo->WINGsVersion);
+ snprintf(text, sizeof(text), "WINGs Version %d", sysinfo->WINGsVersion);
WMSetLabelText(panel->wingsL, text);
WMSetLabelTextAlignment(panel->wingsL, WALeft);
WMSetLabelFont(panel->wingsL, font);
@@ -449,7 +449,7 @@ Initialize(WMScreen *scr)
panel->vendorL = WMCreateLabel(panel->infoFrm);
WMResizeWidget(panel->vendorL, 136, 12);
WMMoveWidget(panel->vendorL, 6, 38);
- sprintf(text, "Window Server %d", sysinfo->VendorRelease);
+ snprintf(text, sizeof(text), "Window Server %d", sysinfo->VendorRelease);
WMSetLabelText(panel->vendorL, text);
WMSetLabelTextAlignment(panel->vendorL, WALeft);
WMSetLabelFont(panel->vendorL, font);
@@ -458,7 +458,7 @@ Initialize(WMScreen *scr)
panel->osL = WMCreateLabel(panel->infoFrm);
WMResizeWidget(panel->osL, 216, 12);
WMMoveWidget(panel->osL, 226, 10);
- sprintf(text, "%s %s", sysinfo->SystemName, sysinfo->SystemRelease);
+ snprintf(text, sizeof(text), "%s %s", sysinfo->SystemName, sysinfo->SystemRelease);
WMSetLabelText(panel->osL, text);
WMSetLabelTextAlignment(panel->osL, WARight);
WMSetLabelFont(panel->osL, font);
@@ -467,7 +467,7 @@ Initialize(WMScreen *scr)
panel->cpuL = WMCreateLabel(panel->infoFrm);
WMResizeWidget(panel->cpuL, 216, 12);
WMMoveWidget(panel->cpuL, 226, 24);
- sprintf(text, "Processor: %s", sysinfo->Processor);
+ snprintf(text, sizeof(text), "Processor: %s", sysinfo->Processor);
WMSetLabelText(panel->cpuL, text);
WMSetLabelTextAlignment(panel->cpuL, WARight);
WMSetLabelFont(panel->cpuL, font);
@@ -476,7 +476,7 @@ Initialize(WMScreen *scr)
panel->userL = WMCreateLabel(panel->infoFrm);
WMResizeWidget(panel->userL, 272, 12);
WMMoveWidget(panel->userL, 442 - WMWidgetWidth(panel->userL) , 38);
- sprintf(text, "%s@%s", sysinfo->User, sysinfo->Host);
+ snprintf(text, sizeof(text), "%s@%s", sysinfo->User, sysinfo->Host);
WMSetLabelText(panel->userL, text);
WMSetLabelTextAlignment(panel->userL, WARight);
WMSetLabelFont(panel->userL, font);
@@ -512,11 +512,11 @@ loadConfigurations(WMScreen *scr, WMWind
if (!PLIsDictionary(db)) {
PLRelease(db);
db = NULL;
- sprintf(mbuf, _("WMSound domain (%s) is corrupted!"), path);
+ snprintf(mbuf, sizeof(mbuf), _("WMSound domain (%s) is corrupted!"), path);
WMRunAlertPanel(scr, mainw, _("Error"), mbuf, _("OK"), NULL, NULL);
}
} else {
- sprintf(mbuf, _("Could not load WMSound domain (%s) from defaults database."), path);
+ snprintf(mbuf, sizeof(mbuf), _("Could not load WMSound domain (%s) from defaults database."), path);
WMRunAlertPanel(scr, mainw, _("Error"), mbuf, _("OK"), NULL, NULL);
}
free(path);

View File

@ -0,0 +1,5 @@
$OpenBSD: patch-src_WSoundPrefs_man,v 1.1.1.1 2001/01/09 21:01:14 naddy Exp $
--- src/WSoundPrefs.man.orig Thu Dec 21 18:13:32 2000
+++ src/WSoundPrefs.man Thu Dec 21 18:16:24 2000
@@ -0,0 +1 @@
+

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-src_tiff_Imakefile,v 1.1.1.1 2001/01/09 21:01:14 naddy Exp $
--- src/tiff/Imakefile.orig Sun Nov 7 22:03:42 1999
+++ src/tiff/Imakefile Tue Jan 9 21:43:41 2001
@@ -1,4 +1,4 @@
-TIFFDIR = /Apps/WSoundPrefs.app/tiff/
+TIFFDIR = /usr/local/GNUstep/Apps/WSoundPrefs.app/tiff/
TIFFS = loadset.tiff saveset.tiff

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-src_xpm_Imakefile,v 1.1.1.1 2001/01/09 21:01:14 naddy Exp $
--- src/xpm/Imakefile.orig Sun Nov 7 22:03:52 1999
+++ src/xpm/Imakefile Tue Jan 9 21:43:41 2001
@@ -1,4 +1,4 @@
-XPMDIR = /Apps/WSoundPrefs.app/xpm/
+XPMDIR = /usr/local/GNUstep/Apps/WSoundPrefs.app/xpm/
XPMS = loadset.xpm saveset.xpm

View File

@ -0,0 +1 @@
wmsound server preferences program

View File

@ -0,0 +1,3 @@
WMSound Server Preferences Program
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,13 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/01/09 21:01:14 naddy Exp $
GNUstep/Apps/WSoundPrefs.app/WSoundPrefs
GNUstep/Apps/WSoundPrefs.app/WSoundPrefs.tiff
GNUstep/Apps/WSoundPrefs.app/WSoundPrefs.xpm
GNUstep/Apps/WSoundPrefs.app/tiff/loadset.tiff
GNUstep/Apps/WSoundPrefs.app/tiff/saveset.tiff
GNUstep/Apps/WSoundPrefs.app/xpm/loadset.xpm
GNUstep/Apps/WSoundPrefs.app/xpm/saveset.xpm
share/doc/wsoundprefs/COPYING
@dirrm share/doc/wsoundprefs
@dirrm GNUstep/Apps/WSoundPrefs.app/xpm
@dirrm GNUstep/Apps/WSoundPrefs.app/tiff
@dirrm GNUstep/Apps/WSoundPrefs.app