rules/rule: New macro

This macro makes it slightly easier to write new, simple rules.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>