Freesco, NND, CDN, EOS
http://forum.freesco.pl/

nnd z lipca, kernel 2.31, i brak ipp2p?
http://forum.freesco.pl/viewtopic.php?f=22&t=8800
Strona 1 z 1

Autor:  komati [ czwartek, 1 września 2005, 21:02 ]
Tytuł:  nnd z lipca, kernel 2.31, i brak ipp2p?

Witam
Jak w temacie, czytalem na forum o ipp2p, robie tak jak napisane, a gdy wpisuje pacman -S ipp2p, to mi pokazuje ze nie ma takiego pakietu :x
Na forum napisane jest, ze w nowym nnd jest ipp2p, ale u mnie go nie ma!! To jak to w koncu jest?
Sciagnalem ipp2p z glownej strony ipp2p.org, i tam w readme jest taka linijka:
#########################################
-modify the Makefile (change "IUSER = -I/usr/src/iptables/include" to wherever iptables.h is located)
###################################
ale w Makefile nie ma tkiego wiersza, jest to:
#####################################
ifneq ($(KERNELRELEASE),)
obj-m := ipt_ipp2p.o

else

KERNEL_SRC ?= $(firstword $(wildcard /lib/modules/$(shell uname -r)/build /usr/src/linux))
ifeq ($(KERNEL_SRC),)
$(error You need to define KERNEL_SRC)
endif

ifneq ($wildcard $(KERNEL_SRC)/include/linux/modversions.h),)
MODVERSIONS = -DMODVERSIONS
endif

_KVER = $(strip $(shell cat $(KERNEL_SRC)/Makefile | grep -e '^VERSION' | cut -d"=" -f2))
_KPL = $(strip $(shell cat $(KERNEL_SRC)/Makefile | grep -e '^PATCHLEVEL' | cut -d"=" -f2))
_KSUB = $(strip $(shell cat $(KERNEL_SRC)/Makefile | grep -e '^SUBLEVEL' | cut -d"=" -f2))
KERNEL_SERIES=$(_KVER).$(_KPL)

ifeq ($(KERNEL_SERIES), 2.6)
TARGET=ipt_ipp2p.ko
else
TARGET=ipt_ipp2p.o
endif

SED = sed
IPTABLES_BIN = iptables

ifndef $(IPTABLES_SRC)
IPTVER ?= \
$(shell $(IPTABLES_BIN) --version | $(SED) -e 's/^iptables v//')
IPTABLES_SRC = $(wildcard /usr/src/iptables-$(IPTVER))
endif

ifeq ($(IPTABLES_SRC),)
IPTABLES_SRC = /usr/src/iptables-1.2.9
endif

IPTABLES_INCLUDE = -I$(IPTABLES_SRC)/include
IPTABLES_VERSION = $(shell cat $(IPTABLES_SRC)/Makefile | grep -e '^IPTABLES_VERSION:=' | cut -d"=" -f2)
IPTABLES_OPTION = -DIPTABLES_VERSION=\"$(IPTABLES_VERSION)\"

CC = gcc
CFLAGS = -O3 -Wall



all: modules libipt_ipp2p.so

modules: $(TARGET)

ipt_ipp2p.o: ipt_ipp2p.h ipt_ipp2p.c
$(CC) $(CFLAGS) -I$(KERNEL_SRC)/include -c ipt_ipp2p.c -D__KERNEL__ -DMODULE $(MODVERSIONS)

ipt_ipp2p.ko: ipt_ipp2p.h ipt_ipp2p.c
$(MAKE) -C $(KERNEL_SRC) SUBDIRS=$(PWD) modules


libipt_ipp2p.so: libipt_ipp2p.c ipt_ipp2p.h
$(CC) $(CFLAGS) $(IPTABLES_OPTION) $(IPTABLES_INCLUDE) -fPIC -c libipt_ipp2p.c
ld -shared -o libipt_ipp2p.so libipt_ipp2p.o

clean:
-rm -f *.o *.so *.ko .*.cmd *.mod.c
endif
##############################
wiec co tu trza zmodyfikowac?
Prosze o podpowiedzi
ew. na gg#6087506

Autor:  mih2 [ czwartek, 1 września 2005, 21:08 ]
Tytuł: 

Jest wkompilowane nietrzeba wpisywać pacman -S ipp2p. Jeśli chcesz tu jest informacja jak wgrac nowsza wersje http://forum.freesco.pl/viewtopic.php?t=8722

Strona 1 z 1 Strefa czasowa UTC+2godz.
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/