Skip to content

Commit

Permalink
Added build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroennijhof committed Jul 1, 2013
1 parent 4c9960e commit 1c72631
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ openufp:
$(CC) $(CFLAGS) openufp.c cache.c n2h2.c websense.c blacklist.c proxy.c squidguard.c -o $@ $(LIBS)

install: openufp
install -c -o $(OWNER) -g $(GROUP) -m 755 openufp $(SBINDIR)
install -o $(OWNER) -g $(GROUP) -m 755 openufp $(SBINDIR)
install -o $(OWNER) -g $(GROUP) -m 755 -d /var/cache/openufp

clean:
rm -f openufp
7 changes: 7 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ It supports multiple back ends like url blacklist file, squidguard and proxy ser
This project has been known as n2h2p.


Install
=====

Just type "make" followed by "sudo make install".
Make sure you have libdb and libdb-dev installed, preferable version 5.1.


Usage
=====

Expand Down
4 changes: 2 additions & 2 deletions openufp.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

// Helper functions
void usage() {
printf("Usage: openufp [OPTIONS] <-n|-w> <BACKEND>\n");
printf("\nUsage: openufp [OPTIONS] <-n|-w> <BACKEND>\n");
printf("Example: openufp -n -p '192.168.1.10:3128:Access Denied.'\n");
printf("Example: openufp -n -f blacklist -p '192.168.1.10:3128:Access Denied.'\n");
printf("Example: openufp -C http://www.test.com\n\n");
Expand All @@ -43,7 +43,7 @@ void usage() {
printf(" When squidguard backend is used be sure that this program has rw permissions\n");
printf(" to the squidguard db files.\n\n");
printf("Version: %s\n", VERSION);
printf("Report bugs to: jeroen@nijhofnet.nl\n");
printf("Report bugs to: jeroen@jeroennijhof.nl\n\n");
}


Expand Down

0 comments on commit 1c72631

Please sign in to comment.