Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5f7c82cc4 | ||
| a65bf7d390 | |||
| 09a280d678 | |||
| de1e4a1e22 |
5 changed files with 127 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
bad-behavior.2.0.36.zip
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: wordpress-plugin-bad-behavior
|
||||
# $Id$
|
||||
NAME := wordpress-plugin-bad-behavior
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
137e978d8056bc77f5d1b05085af3bc1 bad-behavior.2.0.36.zip
|
||||
125
wordpress-plugin-bad-behavior.spec
Normal file
125
wordpress-plugin-bad-behavior.spec
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
%global plugin_name bad-behavior
|
||||
%global plugin_human_name Bad Behavior
|
||||
|
||||
|
||||
Name: wordpress-plugin-%{plugin_name}
|
||||
Version: 2.0.36
|
||||
Release: 1%{?dist}
|
||||
Summary: %{plugin_human_name} plugin for WordPress
|
||||
|
||||
Group: Applications/Publishing
|
||||
# According to http://plugins.trac.wordpress.org/ all plugins are licensed
|
||||
# under the GPL unless otherwise stated in the plugin source.
|
||||
License: GPLv2+
|
||||
URL: http://www.bad-behavior.ioerror.us/
|
||||
Source0: http://downloads.wordpress.org/plugin/%{plugin_name}.%{version}.zip
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||
Requires: wordpress
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Bad Behavior is a PHP-based solution for blocking link spam and the robots
|
||||
which deliver it.
|
||||
|
||||
Bad Behavior complements other link spam solutions by acting as a gatekeeper,
|
||||
preventing spammers from ever delivering their junk, and in many cases, from
|
||||
ever reading your site in the first place. This keeps your site's load down,
|
||||
makes your site logs cleaner, and can help prevent denial of service conditions
|
||||
caused by spammers.
|
||||
|
||||
Bad Behavior also transcends other link spam solutions by working in a
|
||||
completely different, unique way. Instead of merely looking at the content of
|
||||
potential spam, Bad Behavior analyzes the delivery method as well as the
|
||||
software the spammer is using. In this way, Bad Behavior can stop spam attacks
|
||||
even when nobody has ever seen the particular spam before.
|
||||
|
||||
Bad Behavior is designed to work alongside existing spam prevention services to
|
||||
increase their effectiveness and efficiency. Whenever possible, you should run
|
||||
it in combination with a more traditional spam prevention service.
|
||||
|
||||
This package is built for use with WordPress (wordpress), not WordPress MU. Use
|
||||
wordpress-mu-plugin-%{plugin_name} for WordPress MU.
|
||||
|
||||
|
||||
%package -n wordpress-mu-plugin-%{plugin_name}
|
||||
Summary: %{plugin_human_name} plugin for WordPress MU
|
||||
Group: Applications/Publishing
|
||||
# According to http://plugins.trac.wordpress.org/ all plugins are licensed
|
||||
# under the GPL unless otherwise stated in the plugin source.
|
||||
License: GPLv2+
|
||||
Requires: wordpress-mu
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n wordpress-mu-plugin-%{plugin_name}
|
||||
Bad Behavior is a PHP-based solution for blocking link spam and the robots
|
||||
which deliver it.
|
||||
|
||||
Bad Behavior complements other link spam solutions by acting as a gatekeeper,
|
||||
preventing spammers from ever delivering their junk, and in many cases, from
|
||||
ever reading your site in the first place. This keeps your site's load down,
|
||||
makes your site logs cleaner, and can help prevent denial of service conditions
|
||||
caused by spammers.
|
||||
|
||||
Bad Behavior also transcends other link spam solutions by working in a
|
||||
completely different, unique way. Instead of merely looking at the content of
|
||||
potential spam, Bad Behavior analyzes the delivery method as well as the
|
||||
software the spammer is using. In this way, Bad Behavior can stop spam attacks
|
||||
even when nobody has ever seen the particular spam before.
|
||||
|
||||
Bad Behavior is designed to work alongside existing spam prevention services to
|
||||
increase their effectiveness and efficiency. Whenever possible, you should run
|
||||
it in combination with a more traditional spam prevention service.
|
||||
|
||||
This package is built for use with WordPress MU (wordpress-mu), not regular
|
||||
WordPress. Use wordpress-plugin-%{plugin_name} for regular Wordpress.
|
||||
|
||||
%prep
|
||||
%setup -q -c
|
||||
echo 'To enable "%{plugin_human_name}", go to the administrative section
|
||||
of your blog, "Plugins", and enable the plugin there.' > README.fedora
|
||||
echo 'To allow users to enable "%{plugin_human_name}" for their blogs,
|
||||
be sure to enable this plugin in the administrative control panel
|
||||
for your website.' > README.fedora.mu
|
||||
|
||||
|
||||
%build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
# Pull doc files up so they aren't duplicated
|
||||
mv %{plugin_name}/{COPYING,README.txt} .
|
||||
# Trim some non-WordPress files we don't need
|
||||
rm -f %{plugin_name}/bad-behavior-{lifetype,mediawiki}.php
|
||||
mkdir -p %{buildroot}%{_datadir}/wordpress/wp-content/plugins/
|
||||
cp -a %{plugin_name} %{buildroot}%{_datadir}/wordpress/wp-content/plugins/
|
||||
mkdir -p %{buildroot}%{_datadir}/wordpress-mu/wp-content/plugins/
|
||||
cp -a %{plugin_name} %{buildroot}%{_datadir}/wordpress-mu/wp-content/plugins/
|
||||
# Note, no %find_lang since there are no language files
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING README.txt README.fedora
|
||||
%{_datadir}/wordpress/wp-content/plugins/%{plugin_name}
|
||||
|
||||
|
||||
%files -n wordpress-mu-plugin-%{plugin_name}
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING README.txt README.fedora.mu
|
||||
%{_datadir}/wordpress-mu/wp-content/plugins/%{plugin_name}
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri May 28 2010 Nick Bebout <nb@fedoraproject.org> 2.0.36-1
|
||||
- Update to 2.0.36
|
||||
* Tue Nov 10 2009 Nick Bebout <nb@fedoraproject.org> 2.0.32-2
|
||||
- Remove non-applicable comment about language files
|
||||
* Mon Nov 9 2009 Nick Bebout <nb@fedoraproject.org> 2.0.32-1
|
||||
- Fix packaging issues
|
||||
* Wed Jul 15 2009 Michael Hampton <error@ioerror.us> 2.0.28
|
||||
- Initial package build
|
||||
Loading…
Add table
Add a link
Reference in a new issue