summaryrefslogtreecommitdiff
path: root/homebrew/cherokee
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/cherokee
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/cherokee')
-rw-r--r--homebrew/cherokee/.beer49
-rw-r--r--homebrew/cherokee/.make.sh-auto12
-rw-r--r--homebrew/cherokee/_metadata/description1
-rw-r--r--homebrew/cherokee/_metadata/homepage1
-rw-r--r--homebrew/cherokee/_metadata/name1
-rw-r--r--homebrew/cherokee/_metadata/version1
-rwxr-xr-xhomebrew/cherokee/download.sh1
-rwxr-xr-xhomebrew/cherokee/patches.sh1
8 files changed, 67 insertions, 0 deletions
diff --git a/homebrew/cherokee/.beer b/homebrew/cherokee/.beer
new file mode 100644
index 000000000..141fd728b
--- /dev/null
+++ b/homebrew/cherokee/.beer
@@ -0,0 +1,49 @@
+{
+ "name": "Cherokee",
+ "description": "Modern, user friendly web server",
+ "url": "https://src.fedoraproject.org/repo/pkgs/cherokee/cherokee-1.2.103.tar.gz/527b3de97ef9727bfd5f6832043cf916/cherokee-1.2.103.tar.gz",
+ "mirror": null,
+ "homepage": "http://cherokee-project.com/",
+ "depends": [
+ {
+ "depend": "gettext",
+ "build-depend": false
+ },
+ {
+ "depend": "openssl",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": "https://github.com/cherokee/webserver/commit/d0213768fdc6cf3aee61fe0be398d7825c01198f.diff?full_index=1",
+ "strip": "1"
+ }
+ ],
+ "install": [
+ "if build.head?",
+ "ENV[\"LIBTOOL\"] = \"glibtool\"",
+ "ENV[\"LIBTOOLIZE\"] = \"glibtoolize\"",
+ "cmd = \"./autogen.sh\"",
+ "else",
+ "cmd = \"./configure\"",
+ "end",
+ "system cmd, \"--disable-dependency-tracking\",",
+ "\"--prefix=#{prefix}\",",
+ "\"--sysconfdir=#{etc}\",",
+ "\"--localstatedir=#{var}/cherokee\",",
+ "\"--with-wwwuser=#{ENV[\"USER\"]}\",",
+ "\"--with-wwwgroup=www\",",
+ "\"--enable-internal-pcre\",",
+ "\"--with-wwwroot=#{etc}/cherokee/htdocs\",",
+ "\"--with-cgiroot=#{etc}/cherokee/cgi-bin\"",
+ "system \"make\", \"install\"",
+ "prefix.install \"org.cherokee.webserver.plist\"",
+ "(prefix+\"org.cherokee.webserver.plist\").chmod 0644",
+ "(pkgshare/\"admin/server.py\").chmod 0755"
+ ],
+ "version": "1.2.103",
+ "file": "cherokee.rb"
+} \ No newline at end of file
diff --git a/homebrew/cherokee/.make.sh-auto b/homebrew/cherokee/.make.sh-auto
new file mode 100644
index 000000000..5e80dc769
--- /dev/null
+++ b/homebrew/cherokee/.make.sh-auto
@@ -0,0 +1,12 @@
+pkg:setup
+ENV["LIBTOOL"] = "glibtool"
+ENV["LIBTOOLIZE"] = "glibtoolize"
+cmd = "./autogen.sh"
+else
+cmd = "./configure"
+end
+cmd --disable-dependency-tracking --prefix=${PKG_TAPF} --sysconfdir=#{etc} --localstatedir=#{var}/cherokee --with-wwwuser=#{ENV[USER"]}" --with-wwwgroup=www --enable-internal-pcre --with-wwwroot=#{etc}/cherokee/htdocs --with-cgiroot=#{etc}/cherokee/cgi-bin
+make DESTDIR=${PKG_DEST} install
+prefix.install "org.cherokee.webserver.plist"
+(prefix+"org.cherokee.webserver.plist").chmod 0644
+(pkgshare/"admin/server.py").chmod 0755
diff --git a/homebrew/cherokee/_metadata/description b/homebrew/cherokee/_metadata/description
new file mode 100644
index 000000000..d08e774bf
--- /dev/null
+++ b/homebrew/cherokee/_metadata/description
@@ -0,0 +1 @@
+Modern, user friendly web server
diff --git a/homebrew/cherokee/_metadata/homepage b/homebrew/cherokee/_metadata/homepage
new file mode 100644
index 000000000..36130802c
--- /dev/null
+++ b/homebrew/cherokee/_metadata/homepage
@@ -0,0 +1 @@
+http://cherokee-project.com/
diff --git a/homebrew/cherokee/_metadata/name b/homebrew/cherokee/_metadata/name
new file mode 100644
index 000000000..d2187db92
--- /dev/null
+++ b/homebrew/cherokee/_metadata/name
@@ -0,0 +1 @@
+Cherokee
diff --git a/homebrew/cherokee/_metadata/version b/homebrew/cherokee/_metadata/version
new file mode 100644
index 000000000..0a88fc62a
--- /dev/null
+++ b/homebrew/cherokee/_metadata/version
@@ -0,0 +1 @@
+1.2.103
diff --git a/homebrew/cherokee/download.sh b/homebrew/cherokee/download.sh
new file mode 100755
index 000000000..e1de96873
--- /dev/null
+++ b/homebrew/cherokee/download.sh
@@ -0,0 +1 @@
+wget https://src.fedoraproject.org/repo/pkgs/cherokee/cherokee-1.2.103.tar.gz/527b3de97ef9727bfd5f6832043cf916/cherokee-1.2.103.tar.gz \ No newline at end of file
diff --git a/homebrew/cherokee/patches.sh b/homebrew/cherokee/patches.sh
new file mode 100755
index 000000000..bd0216d6a
--- /dev/null
+++ b/homebrew/cherokee/patches.sh
@@ -0,0 +1 @@
+wget https://github.com/cherokee/webserver/commit/d0213768fdc6cf3aee61fe0be398d7825c01198f.diff?full_index=1