mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Merged in TimothyGu/haikuports/lint (pull request #412)
Fix several lint tests
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
SUMMARY="Japanese input system"
|
||||
DESCRIPTION="
|
||||
Anthy is a Japanese input method working on X11 and Emacs. \
|
||||
It converts hiragana text to mixed kana and kanji. It is implemented as \
|
||||
a library and stores private information securely in ~/.anthy/. Thus, \
|
||||
Anthy is simple and secure (information is protected from spoofing and snooping).
|
||||
"
|
||||
HOMEPAGE="http://anthy.sourceforge.jp/"
|
||||
SRC_URI="http://sourceforge.jp/frs/redir.php?m=keihanna&f=%2Fanthy%2F37536%2Fanthy-9100h.tar.gz"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
BUILD()
|
||||
{
|
||||
cd anthy-9100h
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
automake
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd anthy-9100h
|
||||
make install
|
||||
}
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
COPYRIGHT="2000-2007 TABATA Yusuke, UGAWA Tomoharu
|
||||
2004-2006 YOSHIDA Yuichi
|
||||
2000-2007 KMC(Kyoto University Micro Computer Club)
|
||||
2001-2002 TAKAI Kosuke, Nobuoka Takahiro"
|
||||
80
app-i18n/anthy/anthy-9100h.recipe
Normal file
80
app-i18n/anthy/anthy-9100h.recipe
Normal file
@@ -0,0 +1,80 @@
|
||||
SUMMARY="Japanese input system"
|
||||
DESCRIPTION="
|
||||
Anthy is a Japanese input method working on X11 and Emacs. \
|
||||
It converts hiragana text to mixed kana and kanji. It is implemented as \
|
||||
a library and stores private information securely in ~/.anthy/. Thus, \
|
||||
Anthy is simple and secure (information is protected from spoofing and snooping).
|
||||
"
|
||||
HOMEPAGE="http://anthy.sourceforge.jp/"
|
||||
SRC_URI="http://sourceforge.jp/frs/redir.php?f=%2Fanthy%2F37536%2Fanthy-9100h.tar.gz"
|
||||
CHECKSUM_SHA256="d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2275547"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
cmd:sed
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
REQUIRES_devel="
|
||||
haiku_devel
|
||||
anthy == $portVersion base
|
||||
"
|
||||
PROVIDES="
|
||||
anthy = $portVersion
|
||||
cmd:anthy_agent = $portVersion
|
||||
cmd:anthy_dic_tool = $portVersion
|
||||
cmd:anthy_morphological_analyzer = $portVersion
|
||||
lib:libanthy = 0.1.0 compat >= 0
|
||||
lib:libanthydic = 0.1.0 compat >= 0
|
||||
lib:libanthyinput = 0.0.0 compat >= 0
|
||||
"
|
||||
PROVIDES_devel="
|
||||
anthy_devel = $portVersion
|
||||
devel:libanthy = 0.1.0 compat >= 0
|
||||
devel:libanthydic = 0.1.0 compat >= 0
|
||||
devel:libanthyinput = 0.0.0 compat >= 0
|
||||
"
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/anthy-conf auto-merge
|
||||
"
|
||||
PATCH()
|
||||
{
|
||||
sed -i 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' configure.ac
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
automake
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
prepareInstalledDevelLibs \
|
||||
libanthy \
|
||||
libanthydic \
|
||||
libanthyinput
|
||||
fixPkgconfig
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
COPYRIGHT="2000-2007 TABATA Yusuke, UGAWA Tomoharu
|
||||
2004-2006 YOSHIDA Yuichi
|
||||
2000-2007 KMC(Kyoto University Micro Computer Club)
|
||||
2001-2002 TAKAI Kosuke, Nobuoka Takahiro"
|
||||
@@ -5,7 +5,7 @@ Angband is a free, single-player dungeon exploration game. You play an \
|
||||
adventurer: seeking riches, fighting monsters, and preparing for a final \
|
||||
battle with Morgoth, the Lord of Darkness.
|
||||
"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
ARCHITECTURES="x86_gcc2"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="
|
||||
@@ -102,6 +102,7 @@ BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PATCHES="angband-${portVersion}.patchset"
|
||||
BUILD()
|
||||
{
|
||||
autoconf
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
DESCRIPTION="
|
||||
APlayer is a module player and can play a lot of different music file formats, \
|
||||
from Amiga and elsewhere.
|
||||
"
|
||||
HOMEPAGE="http://pulkomandy.tk/projects/APlayer"
|
||||
SRC_URI="svn://pulkomandy.tk/APlayer/trunk/"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="broken"
|
||||
DEPEND=""
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd aplayer-4.0.1/Master
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/`finddir B_APPS_DIRECTORY`/APlayer
|
||||
cp -a APlayer ${DESTDIR}/`finddir B_APPS_DIRECTORY`/APlayer
|
||||
}
|
||||
|
||||
LICENSE="Artistic Licence"
|
||||
COPYRIGHT="1994-2002 Polycode
|
||||
2011-2012 Adrien Destugues
|
||||
"
|
||||
@@ -1,28 +1,68 @@
|
||||
DESCRIPTION="AllegroMP3 is an Allegro wrapper for the mpglib MP3 decoder part of mpg123"
|
||||
SUMMARY="Allegro wrapper for the mpglib MP3 decoder"
|
||||
DESCRIPTION='AllegroMP3 (or "almp3" for short) is a wrapper for the MP3 \
|
||||
decoder in mpg123 that allows using it in Allegro. It uses an internal copy of \
|
||||
mpg123 that is optimized for the x86 platform in SIMD assembly.'
|
||||
HOMEPAGE="http://icculus.org/~eviltypeguy/pkg/almp3/"
|
||||
SRC_URI="http://icculus.org/~eviltypeguy/pkg/almp3/almp3-2.0.4.tar.bz2"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="media-libs/allegro >= 4.4"
|
||||
CHECKSUM_MD5="8fe1517750acf23c07442b31447791a8"
|
||||
SRC_URI="http://icculus.org/~eviltypeguy/pkg/almp3/almp3-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256='149af1a5ee06b5d7d5a52152db0e35ad6de8dfdd9d281fdac52728ef5d438d70'
|
||||
LICENSE='GNU LGPL v2.1'
|
||||
COPYRIGHT='2001-2005 Javier Gonzalez'
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
REVISION='2'
|
||||
|
||||
PROVIDES="
|
||||
almp3$secondaryArchSuffix = $portVersion
|
||||
lib:libalmp3$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
PROVIDES_devel="
|
||||
almp3${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libalmp3$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku${secondaryArchSuffix}
|
||||
lib:liballeg${secondaryArchSuffix} >= 4.4
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc${secondaryArchSuffix}
|
||||
cmd:install
|
||||
cmd:ld${secondaryArchSuffix}
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:liballeg${secondaryArchSuffix} >= 4.4
|
||||
"
|
||||
|
||||
SOURCE_DIR='almp3'
|
||||
|
||||
PATCHES="almp3-$portVersion.patchset"
|
||||
BUILD()
|
||||
{
|
||||
cd almp3
|
||||
mkdir -p obj/haiku/dynamic
|
||||
mkdir -p obj/haiku/static
|
||||
mkdir -p lib/haiku
|
||||
make TARGET=HAIKU_STATIC
|
||||
make TARGET=HAIKU_SHARED
|
||||
make $jobArgs TARGET=HAIKU_STATIC
|
||||
make $jobArgs TARGET=HAIKU_DYNAMIC
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd almp3
|
||||
|
||||
make install prefix=/boot/common \
|
||||
INSTALL="install -c" \
|
||||
INSTALL_INFO="install-info"
|
||||
make install TARGET=HAIKU_STATIC \
|
||||
includedir="$includeDir" \
|
||||
docdir="$docDir" \
|
||||
libdir="$libDir" \
|
||||
INSTALL="install -c"
|
||||
make install TARGET=HAIKU_DYNAMIC \
|
||||
includedir="$includeDir" \
|
||||
docdir="$docDir" \
|
||||
libdir="$libDir" \
|
||||
INSTALL="install -c"
|
||||
|
||||
prepareInstalledDevelLib libalmp3
|
||||
packageEntries devel \
|
||||
"$developDir"
|
||||
}
|
||||
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
COPYRIGHT="2001-2003 Javier Gonzalez"
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
diff -urN almp3/Makefile almp3-haiku/Makefile
|
||||
--- almp3/Makefile 2005-07-26 02:36:11.066846720 +0000
|
||||
+++ almp3-haiku/Makefile 2010-06-08 08:16:15.839909376 +0000
|
||||
@@ -7,7 +7,7 @@
|
||||
#TARGET=MINGW32_STATIC
|
||||
#TARGET=MINGW32_DLL
|
||||
#TARGET=LINUX_STATIC
|
||||
-TARGET=SOLARIS_DYNAMIC
|
||||
+#TARGET=SOLARIS_DYNAMIC
|
||||
|
||||
prefix = /opt/BCallegro
|
||||
exec_prefix = ${prefix}
|
||||
@@ -60,6 +60,19 @@
|
||||
endif
|
||||
|
||||
|
||||
+# HAIKU_STATIC
|
||||
+ifeq ($(TARGET),HAIKU_STATIC)
|
||||
+TARGETFLAGS=-Wall -O2 -march=pentium -fomit-frame-pointer -finline-functions -ffast-math
|
||||
+OBJDIR=obj/haiku/static
|
||||
+LIBDEST=lib/libalmp3.a
|
||||
+endif
|
||||
+
|
||||
+# HAIKU_SHARED
|
||||
+ifeq ($(TARGET),HAIKU_SHARED)
|
||||
+TARGETFLAGS=-Wall -O2 -march=pentium -fomit-frame-pointer -finline-functions -ffast-math
|
||||
+OBJDIR=obj/haiku/dynamic
|
||||
+LIBDEST=lib/libalmp3.so
|
||||
+endif
|
||||
|
||||
# LINUX_STATIC
|
||||
ifeq ($(TARGET),LINUX_STATIC)
|
||||
@@ -106,7 +119,6 @@
|
||||
endif
|
||||
endif
|
||||
|
||||
-
|
||||
# compiling of the library
|
||||
%.o: %.c
|
||||
$(CC) -c $(CFLAGS) $< -o $(OBJDIR)/$@
|
||||
@@ -118,7 +130,8 @@
|
||||
$(INSTALL_DATA) -D docs/AUTHORS.txt $(DESTDIR)$(docdir)/almp3/AUTHORS.txt
|
||||
$(INSTALL_DATA) -D docs/COPYING.txt $(DESTDIR)$(docdir)/almp3/COPYING.txt
|
||||
$(INSTALL_DATA) -D include/almp3.h $(DESTDIR)$(includedir)/almp3.h
|
||||
- $(INSTALL) -m 755 -D $(LIBDEST) $(DESTDIR)$(libdir)/libalmp3.so
|
||||
+ $(INSTALL) -m 755 -D lib/libalmp3.so $(DESTDIR)$(libdir)/libalmp3.so
|
||||
+ $(INSTALL) -m 755 -D lib/libalmp3.a $(DESTDIR)$(libdir)/libalmp3.a
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS2) $(LIBDEST) $(LIBIMP)
|
||||
165
media-libs/almp3/patches/almp3-2.0.4.patchset
Normal file
165
media-libs/almp3/patches/almp3-2.0.4.patchset
Normal file
@@ -0,0 +1,165 @@
|
||||
From 4bceec3bc45e00d53904c01167a2703d2f5242ac Mon Sep 17 00:00:00 2001
|
||||
From: Timothy Gu <timothygu99@gmail.com>
|
||||
Date: Wed, 31 Dec 2014 23:17:09 -0800
|
||||
Subject: Fix lvalues
|
||||
|
||||
Casts are not lvalues.
|
||||
|
||||
diff --git a/src/almp3.c b/src/almp3.c
|
||||
index 0757ca9..e10a693 100644
|
||||
--- a/src/almp3.c
|
||||
+++ b/src/almp3.c
|
||||
@@ -319,6 +319,7 @@ ALMP3_MP3 *almp3_create_mp3(void *data, int data_len) {
|
||||
int ret;
|
||||
char test_outbuf[8192];
|
||||
int test_size, framebytes;
|
||||
+ char **data_ptr = (char **)&data;
|
||||
|
||||
/* test for ID3v1 and if exists, skip it */
|
||||
if (memcmp((void *)&p[data_len - 128], "TAG", 3) == 0) {
|
||||
@@ -330,7 +331,7 @@ ALMP3_MP3 *almp3_create_mp3(void *data, int data_len) {
|
||||
|
||||
/* test for ID3v2 and if exists, skip it */
|
||||
data_start_skipped = almp3_get_id3v2_skip_bytes(p);
|
||||
- (char *)data += data_start_skipped;
|
||||
+ *data_ptr += data_start_skipped;
|
||||
data_len -= data_start_skipped;
|
||||
|
||||
/* test the next 16 * MAXFRAMESIZE bytes after ID3v2 until we find one valid frame */
|
||||
@@ -378,7 +379,7 @@ ALMP3_MP3 *almp3_create_mp3(void *data, int data_len) {
|
||||
|
||||
data_start_skipped += skipbytes;
|
||||
data_len -= skipbytes;
|
||||
- (char *)data += skipbytes;
|
||||
+ *data_ptr += skipbytes;
|
||||
}
|
||||
|
||||
/* must be layer III or II */
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
|
||||
From 500c50db231aa5bba5bfbd4029215d1a82f7a76f Mon Sep 17 00:00:00 2001
|
||||
From: Timothy Gu <timothygu99@gmail.com>
|
||||
Date: Wed, 31 Dec 2014 23:16:56 -0800
|
||||
Subject: Add makefile rules for Haiku and make obj and lib dir before building
|
||||
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 508570f..43f3654 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -7,7 +7,7 @@
|
||||
#TARGET=MINGW32_STATIC
|
||||
#TARGET=MINGW32_DLL
|
||||
#TARGET=LINUX_STATIC
|
||||
-TARGET=SOLARIS_DYNAMIC
|
||||
+#TARGET=SOLARIS_DYNAMIC
|
||||
|
||||
prefix = /opt/BCallegro
|
||||
exec_prefix = ${prefix}
|
||||
@@ -60,6 +60,19 @@ ALMP3_DLL_EXPORTS=1
|
||||
endif
|
||||
|
||||
|
||||
+# HAIKU_STATIC
|
||||
+ifeq ($(TARGET),HAIKU_STATIC)
|
||||
+TARGETFLAGS=-Wall -O2 -march=pentium -fomit-frame-pointer -finline-functions -ffast-math
|
||||
+OBJDIR=obj/haiku/static
|
||||
+LIBDEST=lib/haiku/libalmp3.a
|
||||
+endif
|
||||
+
|
||||
+# HAIKU_DYNAMIC
|
||||
+ifeq ($(TARGET),HAIKU_DYNAMIC)
|
||||
+TARGETFLAGS=-Wall -O2 -march=pentium -fomit-frame-pointer -finline-functions -ffast-math -shared
|
||||
+OBJDIR=obj/haiku/dynamic
|
||||
+LIBDEST=lib/haiku/libalmp3.so
|
||||
+endif
|
||||
|
||||
# LINUX_STATIC
|
||||
ifeq ($(TARGET),LINUX_STATIC)
|
||||
@@ -90,6 +103,11 @@ OBJECTS2=$(addprefix $(OBJDIR)/,$(OBJECTS))
|
||||
|
||||
# making of the library
|
||||
|
||||
+$(LIBDEST): $(dir $(LIBDEST))
|
||||
+
|
||||
+$(dir $(LIBDEST)):
|
||||
+ mkdir -p $@
|
||||
+
|
||||
# MINGW32_DLL
|
||||
ifeq ($(TARGET),MINGW32_DLL)
|
||||
$(LIBDEST): $(OBJECTS)
|
||||
@@ -97,9 +115,9 @@ $(LIBDEST): $(OBJECTS)
|
||||
|
||||
# others
|
||||
else
|
||||
-ifeq ($(TARGET),SOLARIS_DYNAMIC)
|
||||
+ifeq ($(findstring _DYNAMIC,$(TARGET)),_DYNAMIC)
|
||||
$(LIBDEST): $(OBJECTS)
|
||||
- $(CC) -o $@ $(OBJECTS2) $(LFLAGS) $(CFLAGS) -lalleg-4.2.0
|
||||
+ $(CC) -o $@ $(OBJECTS2) $(LFLAGS) $(CFLAGS) -lalleg
|
||||
else
|
||||
$(LIBDEST): $(OBJECTS)
|
||||
ar rs $(LIBDEST) $(OBJECTS2)
|
||||
@@ -108,9 +126,12 @@ endif
|
||||
|
||||
|
||||
# compiling of the library
|
||||
-%.o: %.c
|
||||
+%.o: %.c $(OBJDIR)
|
||||
$(CC) -c $(CFLAGS) $< -o $(OBJDIR)/$@
|
||||
|
||||
+$(OBJDIR):
|
||||
+ mkdir -p $@
|
||||
+
|
||||
install:
|
||||
$(INSTALL_DATA) -D README.txt $(DESTDIR)$(docdir)/almp3/README.txt
|
||||
$(INSTALL_DATA) -D CHANGES.txt $(DESTDIR)$(docdir)/almp3/CHANGES.txt
|
||||
@@ -118,7 +139,11 @@ install:
|
||||
$(INSTALL_DATA) -D docs/AUTHORS.txt $(DESTDIR)$(docdir)/almp3/AUTHORS.txt
|
||||
$(INSTALL_DATA) -D docs/COPYING.txt $(DESTDIR)$(docdir)/almp3/COPYING.txt
|
||||
$(INSTALL_DATA) -D include/almp3.h $(DESTDIR)$(includedir)/almp3.h
|
||||
- $(INSTALL) -m 755 -D $(LIBDEST) $(DESTDIR)$(libdir)/libalmp3.so
|
||||
+ifeq ($(findstring _DYNAMIC,$(TARGET)),_DYNAMIC)
|
||||
+ $(INSTALL) -m 755 -D $(LIBDEST) $(DESTDIR)$(libdir)/$(notdir $(LIBDEST))
|
||||
+else
|
||||
+ $(INSTALL) -m 644 -D $(LIBDEST) $(DESTDIR)$(libdir)/$(notdir $(LIBDEST))
|
||||
+endif
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS2) $(LIBDEST) $(LIBIMP)
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
|
||||
From 801ceeecb0770d2d6378fcf79339982474d15038 Mon Sep 17 00:00:00 2001
|
||||
From: Timothy Gu <timothygu99@gmail.com>
|
||||
Date: Thu, 1 Jan 2015 00:38:16 -0800
|
||||
Subject: Assume docdir already covers the specific package name
|
||||
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 43f3654..32a43bd 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -133,11 +133,11 @@ $(OBJDIR):
|
||||
mkdir -p $@
|
||||
|
||||
install:
|
||||
- $(INSTALL_DATA) -D README.txt $(DESTDIR)$(docdir)/almp3/README.txt
|
||||
- $(INSTALL_DATA) -D CHANGES.txt $(DESTDIR)$(docdir)/almp3/CHANGES.txt
|
||||
- $(INSTALL_DATA) -D docs/ALMP3.txt $(DESTDIR)$(docdir)/almp3/ALMP3.txt
|
||||
- $(INSTALL_DATA) -D docs/AUTHORS.txt $(DESTDIR)$(docdir)/almp3/AUTHORS.txt
|
||||
- $(INSTALL_DATA) -D docs/COPYING.txt $(DESTDIR)$(docdir)/almp3/COPYING.txt
|
||||
+ $(INSTALL_DATA) -D README.txt $(DESTDIR)$(docdir)/README.txt
|
||||
+ $(INSTALL_DATA) -D CHANGES.txt $(DESTDIR)$(docdir)/CHANGES.txt
|
||||
+ $(INSTALL_DATA) -D docs/ALMP3.txt $(DESTDIR)$(docdir)/ALMP3.txt
|
||||
+ $(INSTALL_DATA) -D docs/AUTHORS.txt $(DESTDIR)$(docdir)/AUTHORS.txt
|
||||
+ $(INSTALL_DATA) -D docs/COPYING.txt $(DESTDIR)$(docdir)/COPYING.txt
|
||||
$(INSTALL_DATA) -D include/almp3.h $(DESTDIR)$(includedir)/almp3.h
|
||||
ifeq ($(findstring _DYNAMIC,$(TARGET)),_DYNAMIC)
|
||||
$(INSTALL) -m 755 -D $(LIBDEST) $(DESTDIR)$(libdir)/$(notdir $(LIBDEST))
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
DESCRIPTION="The Apache Web Server."
|
||||
HOMEPAGE="http://httpd.apache.org"
|
||||
SRC_URI="http://apache.osuosl.org//httpd/httpd-2.2.17.tar.gz"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="dev-libs/apr >= 1.4 2
|
||||
dev-libs/apr-utils >= 1.3.9"
|
||||
CHECKSUM_MD5="66d8e107f85acc039fd5e624e85728a9"
|
||||
BUILD()
|
||||
{
|
||||
cd httpd-2.2.17
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--sbindir=`finddir B_COMMON_BIN_DIRECTORY` \
|
||||
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
|
||||
--sysconfdir=`finddir B_COMMON_SETTINGS_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd httpd-2.2.17
|
||||
make install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd httpd-2.2.17
|
||||
make test
|
||||
}
|
||||
|
||||
LICENSE="Apache v2"
|
||||
COPYRIGHT="2009 The Apache Software Foundation."
|
||||
@@ -1,35 +0,0 @@
|
||||
DESCRIPTION="The Apache Web Server."
|
||||
HOMEPAGE="http://httpd.apache.org"
|
||||
SRC_URI="http://apache.osuosl.org//httpd/httpd-2.2.22.tar.gz"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="dev-libs/apr >= 1.4 2
|
||||
dev-libs/apr-utils >= 1.3.9"
|
||||
CHECKSUM_MD5="d77fa5af23df96a8af68ea8114fa6ce1"
|
||||
BUILD()
|
||||
{
|
||||
cd httpd-2.2.22
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--sbindir=`finddir B_COMMON_BIN_DIRECTORY` \
|
||||
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
|
||||
--sysconfdir=`finddir B_COMMON_SETTINGS_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd httpd-2.2.22
|
||||
make install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd httpd-2.2.22
|
||||
make test
|
||||
}
|
||||
|
||||
LICENSE="Apache v2"
|
||||
COPYRIGHT="2012 The Apache Software Foundation."
|
||||
@@ -1,48 +0,0 @@
|
||||
diff -urN httpd-2.2.17/server/mpm_common.c httpd-2.2.17-haiku/server/mpm_common.c
|
||||
--- httpd-2.2.17/server/mpm_common.c 2010-10-07 16:56:54.055836672 +0000
|
||||
+++ httpd-2.2.17-haiku/server/mpm_common.c 2011-02-05 10:58:12.295436288 +0000
|
||||
@@ -950,7 +950,7 @@
|
||||
|
||||
static const char *dash_k_arg;
|
||||
|
||||
-static int send_signal(pid_t pid, int sig)
|
||||
+static int _send_signal(pid_t pid, int sig)
|
||||
{
|
||||
if (kill(pid, sig) < 0) {
|
||||
ap_log_error(APLOG_MARK, APLOG_STARTUP, errno, NULL,
|
||||
@@ -1007,7 +1007,7 @@
|
||||
printf("%s\n", status);
|
||||
}
|
||||
else {
|
||||
- send_signal(otherpid, SIGTERM);
|
||||
+ _send_signal(otherpid, SIGTERM);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
@@ -1017,7 +1017,7 @@
|
||||
printf("httpd not running, trying to start\n");
|
||||
}
|
||||
else {
|
||||
- *exit_status = send_signal(otherpid, SIGHUP);
|
||||
+ *exit_status = _send_signal(otherpid, SIGHUP);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -1027,7 +1027,7 @@
|
||||
printf("httpd not running, trying to start\n");
|
||||
}
|
||||
else {
|
||||
- *exit_status = send_signal(otherpid, AP_SIG_GRACEFUL);
|
||||
+ *exit_status = _send_signal(otherpid, AP_SIG_GRACEFUL);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -1038,7 +1038,7 @@
|
||||
printf("%s\n", status);
|
||||
}
|
||||
else {
|
||||
- *exit_status = send_signal(otherpid, AP_SIG_GRACEFUL_STOP);
|
||||
+ *exit_status = _send_signal(otherpid, AP_SIG_GRACEFUL_STOP);
|
||||
}
|
||||
#else
|
||||
printf("httpd MPM \"" MPM_NAME "\" does not support graceful-stop\n");
|
||||
@@ -1,48 +0,0 @@
|
||||
diff -urN httpd-2.2.22/server/mpm_common.c httpd-2.2.22-haiku/server/mpm_common.c
|
||||
--- httpd-2.2.22/server/mpm_common.c 2010-10-07 16:56:54.055836672 +0000
|
||||
+++ httpd-2.2.22-haiku/server/mpm_common.c 2011-02-05 10:58:12.295436288 +0000
|
||||
@@ -950,7 +950,7 @@
|
||||
|
||||
static const char *dash_k_arg;
|
||||
|
||||
-static int send_signal(pid_t pid, int sig)
|
||||
+static int _send_signal(pid_t pid, int sig)
|
||||
{
|
||||
if (kill(pid, sig) < 0) {
|
||||
ap_log_error(APLOG_MARK, APLOG_STARTUP, errno, NULL,
|
||||
@@ -1007,7 +1007,7 @@
|
||||
printf("%s\n", status);
|
||||
}
|
||||
else {
|
||||
- send_signal(otherpid, SIGTERM);
|
||||
+ _send_signal(otherpid, SIGTERM);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
@@ -1017,7 +1017,7 @@
|
||||
printf("httpd not running, trying to start\n");
|
||||
}
|
||||
else {
|
||||
- *exit_status = send_signal(otherpid, SIGHUP);
|
||||
+ *exit_status = _send_signal(otherpid, SIGHUP);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -1027,7 +1027,7 @@
|
||||
printf("httpd not running, trying to start\n");
|
||||
}
|
||||
else {
|
||||
- *exit_status = send_signal(otherpid, AP_SIG_GRACEFUL);
|
||||
+ *exit_status = _send_signal(otherpid, AP_SIG_GRACEFUL);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -1038,7 +1038,7 @@
|
||||
printf("%s\n", status);
|
||||
}
|
||||
else {
|
||||
- *exit_status = send_signal(otherpid, AP_SIG_GRACEFUL_STOP);
|
||||
+ *exit_status = _send_signal(otherpid, AP_SIG_GRACEFUL_STOP);
|
||||
}
|
||||
#else
|
||||
printf("httpd MPM \"" MPM_NAME "\" does not support graceful-stop\n");
|
||||
Reference in New Issue
Block a user