@@ -728,10 +728,8 @@ obj-y += smartdns
728
728
endif
729
729
ifeq ($(RTCONFIG_SOFTCENTER ) ,y)
730
730
obj-y += skipdbv2 libev-4.22 softcenter libiconv-1.14
731
- obj-y += ipset libmnl libnfnetlink
732
- ifeq ($(RTCONFIG_SOFTCENTER_EXT ) ,y)
733
- obj-y += httpdb
734
- endif
731
+ # obj-y += httpdb mbedtls-2.6.0
732
+ obj-y += ipset libmnl-1.0.4 libnfnetlink-1.0.1
735
733
endif
736
734
obj-y += dbus-1.8.8 libpcap
737
735
obj-y += readline-6.2
@@ -2366,6 +2364,100 @@ endif
2366
2364
bonnie-clean :
2367
2365
[ ! -f bonnie/Makefile ] || $(MAKE ) -C bonnie clean
2368
2366
@rm -f bonnie/Makefile
2367
+ libnfnetlink-1.0.1 : libnfnetlink-1.0.1/Makefile
2368
+ $(MAKE ) -C libnfnetlink-1.0.1
2369
+
2370
+ libnfnetlink-1.0.1/Makefile :
2371
+ $(MAKE ) libnfnetlink-1.0.1-configure
2372
+
2373
+ libnfnetlink-1.0.1-configure :
2374
+ ( cd libnfnetlink-1.0.1 && autoreconf -i -f ; \
2375
+ $(CONFIGURE ) \
2376
+ --prefix=/usr \
2377
+ --bindir=/usr/sbin \
2378
+ --libdir=/usr/lib \
2379
+ )
2380
+
2381
+ libnfnetlink-1.0.1-install :
2382
+ install -D libnfnetlink-1.0.1/src/.libs/libnfnetlink.so $(INSTALLDIR ) /libnfnetlink-1.0.1/usr/lib/libnfnetlink.so.0
2383
+ $(STRIP ) $(INSTALLDIR ) /libnfnetlink-1.0.1/usr/lib/libnfnetlink.so.0
2384
+
2385
+ libnfnetlink-1.0.1-clean :
2386
+ -@$(MAKE ) -C libnfnetlink-1.0.1 clean
2387
+
2388
+ libmnl-1.0.4 : libmnl-1.0.4/Makefile
2389
+ $(MAKE ) -C libmnl-1.0.4
2390
+
2391
+ libmnl-1.0.4/Makefile :
2392
+ (cd libmnl-1.0.4 && autoreconf -i -f)
2393
+ $(MAKE ) libmnl-1.0.4-configure
2394
+
2395
+ libmnl-1.0.4-configure :
2396
+ ( cd libmnl-1.0.4 ; \
2397
+ $(CONFIGURE ) \
2398
+ --prefix=/usr \
2399
+ --bindir=/usr/sbin \
2400
+ --libdir=/usr/lib \
2401
+ )
2402
+
2403
+ libmnl-1.0.4-install :
2404
+ install -D libmnl-1.0.4/src/.libs/libmnl.so $(INSTALLDIR ) /libmnl-1.0.4/usr/lib/libmnl.so.0
2405
+ $(STRIP ) $(INSTALLDIR ) /libmnl-1.0.4/usr/lib/libmnl.so.0
2406
+
2407
+ libmnl-1.0.4-clean :
2408
+ -@$(MAKE ) -C libmnl-1.0.4 clean
2409
+
2410
+ libnetfilter_conntrack-1.0.7 : libnfnetlink-1.0.1 libmnl-1.0.4 libnetfilter_conntrack-1.0.7/Makefile
2411
+ $(MAKE ) -C libnetfilter_conntrack-1.0.7
2412
+
2413
+ libnetfilter_conntrack-1.0.7/Makefile :
2414
+ (cd libnetfilter_conntrack-1.0.7 && autoreconf -i -f)
2415
+ $(MAKE ) libnetfilter_conntrack-1.0.7-configure
2416
+
2417
+ libnetfilter_conntrack-1.0.7-configure :
2418
+ ( cd libnetfilter_conntrack-1.0.7 ; \
2419
+ LIBNFNETLINK_CFLAGS=" -L$( TOP) /libnfnetlink-1.0.1/src/.libs" \
2420
+ LIBNFNETLINK_LIBS=" -lnfnetlink" \
2421
+ LIBMNL_CFLAGS=" -L$( TOP) /libmnl-1.0.4/src/.libs" \
2422
+ LIBMNL_LIBS=" -lmnl" \
2423
+ CFLAGS=" $( CFLAGS) -I$( TOP) /libnfnetlink-1.0.1/include/ -I$( TOP) /libmnl-1.0.4/include -L$( TOP) /libnfnetlink-1.0.1/src/.libs -lnfnetlink -L$( TOP) /libmnl-1.0.4/src/.libs -lmnl" \
2424
+ $(CONFIGURE ) \
2425
+ --prefix=/usr \
2426
+ --bindir=/usr/sbin \
2427
+ --libdir=/usr/lib \
2428
+ )
2429
+
2430
+ libnetfilter_conntrack-1.0.7-install :
2431
+ install -D libnetfilter_conntrack-1.0.7/src/.libs/libnetfilter_conntrack.so $(INSTALLDIR ) /libnetfilter_conntrack-1.0.7/usr/lib/libnetfilter_conntrack.so.3
2432
+ $(STRIP ) $(INSTALLDIR ) /libnetfilter_conntrack-1.0.7/usr/lib/libnetfilter_conntrack.so.3
2433
+
2434
+ libnetfilter_conntrack-1.0.7-clean :
2435
+ -@$(MAKE ) -C libnetfilter_conntrack-1.0.7 clean
2436
+
2437
+ libnetfilter_cttimeout-1.0.0 : libnetfilter_cttimeout-1.0.0/Makefile
2438
+ $(MAKE ) -C libnetfilter_cttimeout-1.0.0
2439
+
2440
+ libnetfilter_cttimeout-1.0.0/Makefile :
2441
+ (cd libnetfilter_cttimeout-1.0.0 && autoreconf -i -f)
2442
+ $(MAKE ) libnetfilter_cttimeout-1.0.0-configure
2443
+
2444
+ libnetfilter_cttimeout-1.0.0-configure :
2445
+ ( cd libnetfilter_cttimeout-1.0.0 ; \
2446
+ LIBMNL_CFLAGS=" -L$( TOP) /libmnl-1.0.4/src/.libs" \
2447
+ LIBMNL_LIBS=" -lmnl" \
2448
+ CFLAGS=" $( CFLAGS) -I$( TOP) /libmnl-1.0.4/include -L$( TOP) /libmnl-1.0.4/src/.libs -lmnl" \
2449
+ $(CONFIGURE ) \
2450
+ --prefix=/usr \
2451
+ --bindir=/usr/sbin \
2452
+ --libdir=/usr/lib \
2453
+ )
2454
+
2455
+ libnetfilter_cttimeout-1.0.0-install :
2456
+ install -D libnetfilter_cttimeout-1.0.0/src/.libs/libnetfilter_cttimeout.so $(INSTALLDIR ) /libnetfilter_cttimeout-1.0.0/usr/lib/libnetfilter_cttimeout.so.1
2457
+ $(STRIP ) $(INSTALLDIR ) /libnetfilter_cttimeout-1.0.0/usr/lib/libnetfilter_cttimeout.so.1
2458
+
2459
+ libnetfilter_cttimeout-1.0.0-clean :
2460
+ -@$(MAKE ) -C libnetfilter_cttimeout-1.0.0 clean
2369
2461
2370
2462
stress-1.x : stress-1.x/Makefile
2371
2463
$(MAKE ) -C stress-1.x
@@ -2812,6 +2904,7 @@ iptables-1.4.21-install: iptables-1.4.21
2812
2904
ifeq ($(RTCONFIG_IPV6 ) ,y)
2813
2905
cd $(INSTALLDIR)/iptables-1.4.21/usr/sbin && \
2814
2906
ln -sf xtables-multi ip6tables-restore && \
2907
+ ln -sf xtables-multi ip6tables-save && \
2815
2908
ln -sf xtables-multi ip6tables
2816
2909
install -D iptables-1.4.21/libiptc/.libs/libip6tc.so $(INSTALLDIR)/iptables-1.4.21/usr/lib/libip6tc.so
2817
2910
cd $(INSTALLDIR)/iptables-1.4.21/usr/lib && \
@@ -2877,6 +2970,7 @@ iptables-1.4.x-install: iptables-1.4.x
2877
2970
ifeq ($(RTCONFIG_IPV6 ) ,y)
2878
2971
cd $(INSTALLDIR)/iptables-1.4.x/usr/sbin && \
2879
2972
ln -sf xtables-multi ip6tables-restore && \
2973
+ ln -sf xtables-multi ip6tables-save && \
2880
2974
ln -sf xtables-multi ip6tables
2881
2975
install -D iptables-1.4.x/libiptc/.libs/libip6tc.so $(INSTALLDIR)/iptables-1.4.x/usr/lib/libip6tc.so
2882
2976
cd $(INSTALLDIR)/iptables-1.4.x/usr/lib && \
@@ -2922,7 +3016,9 @@ libev-4.22-install:
2922
3016
skipdbv2/Makefile : skipdbv2/CMakeLists.txt
2923
3017
cd skipdbv2 && cmake -DCMAKE_INSTALL_PREFIX=/usr \
2924
3018
-DCMAKE_BUILD_TYPE=Release \
2925
- -DCMAKE_EXE_LINKER_FLAGS=" -L$( STAGEDIR) /usr/lib -lev"
3019
+ -DCMAKE_EXE_LINKER_FLAGS=" -L$( STAGEDIR) /usr/lib -lev" \
3020
+ -DLIBEV_INCLUDE_DIRS=" $( TOP) /libev-4.22" \
3021
+ -DLIBEV_LIBRARIES=" $( TOP) /libev-4.22/.libs"
2926
3022
2927
3023
skipdbv2 : libev-4.22 skipdbv2/Makefile
2928
3024
$(MAKE ) -C $@
@@ -2942,37 +3038,14 @@ skipdbv2-install: skipdbv2
2942
3038
$(STRIP ) $(INSTALLDIR ) /skipdbv2/usr/sbin/skipd
2943
3039
$(STRIP ) $(INSTALLDIR ) /skipdbv2/usr/sbin/dbus
2944
3040
2945
- libmnl/stamp-h1 :
2946
- cd $(TOP ) /libmnl && CC=$(CC ) STRIP=" $( STRIP) " \
2947
- CFLAGS=" -Os -Wall $( EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2948
- LDFLAGS=" -ffunction-sections -fdata-sections -Wl,--gc-sections" \
2949
- $(CONFIGURE ) --prefix=/usr
2950
- touch libmnl/stamp-h1
2951
-
2952
- libmnl : libmnl/stamp-h1
2953
- $(MAKE ) -C libmnl
2954
- $(MAKE ) -C libmnl DESTDIR=$(TOP ) /libmnl/staged install
2955
-
2956
- libmnl-install : libmnl
2957
- install -d $(INSTALLDIR ) /libmnl/usr/lib/
2958
- install libmnl/src/.libs/libmnl.so.0.1.0 $(INSTALLDIR ) /libmnl/usr/lib/libmnl.so.0.1.0
2959
- $(STRIP ) $(INSTALLDIR ) /libmnl/usr/lib/libmnl.so.0.1.0
2960
- cd $(INSTALLDIR ) /libmnl/usr/lib/ && \
2961
- ln -sf libmnl.so.0.1.0 libmnl.so.0 && \
2962
- ln -sf libmnl.so.0.1.0 libmnl.so
2963
-
2964
- libmnl-clean :
2965
- -@$(MAKE ) -C libmnl clean
2966
- -@rm -rf libmnl/staged
2967
-
2968
- ipset/stamp-h1 : libmnl
2969
- cd $(TOP ) /ipset && CC=$(CC ) STRIP=" $( STRIP) " \
3041
+ ipset/stamp-h1 : libmnl-1.0.4
3042
+ cd $(TOP ) /ipset && CC=$(CC ) \
2970
3043
autoreconf -i -f && \
2971
3044
CFLAGS=" -Os -Wall $( EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2972
3045
LDFLAGS=" -ffunction-sections -fdata-sections -Wl,--gc-sections" \
2973
- libmnl_CFLAGS=" -I$( TOP) /libmnl/staged/usr /include" \
2974
- libmnl_LIBS=" -L$( TOP) /libmnl/staged/usr/lib -lmnl" \
2975
- $(CONFIGURE ) --prefix=/usr --with-kmod=yes --with-kbuild=$(LINUXDIR )
3046
+ libmnl_CFLAGS=" -I$( TOP) /libmnl-1.0.4 /include" \
3047
+ libmnl_LIBS=" -L$( TOP) /libmnl-1.0.4/src/.libs -lmnl" \
3048
+ $(CONFIGURE ) --prefix=/usr --with-kmod=no --with-kbuild=$(LINUXDIR )
2976
3049
touch ipset/stamp-h1
2977
3050
2978
3051
ipset : ipset/stamp-h1
@@ -2994,23 +3067,45 @@ ipset-clean:
2994
3067
-@$(MAKE ) -C ipset modules_clean
2995
3068
-@rm -rf ipset/Makefile ipset/stamp-h1
2996
3069
2997
- libnfnetlink/stamp-h1 :
2998
- cd $(TOP ) /libnfnetlink && CC=$(CC ) STRIP=" $( STRIP) " \
2999
- CFLAGS=" -Os -Wall $( EXTRACFLAGS) -ffunction-sections -fdata-sections" \
3000
- LDFLAGS=" -ffunction-sections -fdata-sections -Wl,--gc-sections" \
3001
- $(CONFIGURE ) --prefix=/usr --enable-shared --enable-static
3002
- touch libnfnetlink/stamp-h1
3070
+ mbedtls-2.6.0/stamp-h1 :
3071
+ cd mbedtls-2.6.0 && cmake -DCMAKE_INSTALL_PREFIX=/usr \
3072
+ -DUSE_SHARED_MBEDTLS_LIBRARY=ON \
3073
+ -DENABLE_TESTING=OFF \
3074
+ -DENABLE_PROGRAMS=ON
3003
3075
3004
- libnfnetlink : libnfnetlink/stamp-h1
3005
- @$(SEP )
3006
- $(MAKE ) -C libnfnetlink
3007
-
3008
- libnfnetlink-install :
3009
- install -D libnfnetlink/src/.libs/libnfnetlink.so.0.2.0 $(INSTALLDIR ) /libnfnetlink/usr/lib/libnfnetlink.so.0.2.0
3010
- $(STRIP ) -s $(INSTALLDIR ) /libnfnetlink/usr/lib/libnfnetlink.so.0.2.0
3011
- cd $(INSTALLDIR ) /libnfnetlink/usr/lib/ && \
3012
- ln -sf libnfnetlink.so.0.2.0 libnfnetlink.so.0 && \
3013
- ln -sf libnfnetlink.so.0.2.0 libnfnetlink.so
3076
+ mbedtls-2.6.0 : mbedtls-2.6.0/stamp-h1
3077
+ $(MAKE ) -C $@
3078
+
3079
+ mbedtls-2.6.0-clean :
3080
+ [ ! -f mbedtls-2.16.3/Makefile ] || $(MAKE ) -C mbedtls-2.16.3 -f Makefile clean
3081
+
3082
+ mbedtls-2.6.0-install : mbedtls-2.6.0
3083
+ install -D mbedtls-2.6.0/library/libmbedtls.so.2.6.0 $(INSTALLDIR ) /mbedtls-2.6.0/usr/lib/libmbedtls.so.2.6.0
3084
+ install -D mbedtls-2.6.0/library/libmbedcrypto.so.2.6.0 $(INSTALLDIR ) /mbedtls-2.6.0/usr/lib/libmbedcrypto.so.2.6.0
3085
+ install -D mbedtls-2.6.0/library/libmbedx509.so.2.6.0 $(INSTALLDIR ) /mbedtls-2.6.0/usr/lib/libmbedx509.so.2.6.0
3086
+ $(STRIP ) $(INSTALLDIR ) /mbedtls-2.6.0/usr/lib/libmbedtls.so.2.6.0
3087
+ $(STRIP ) $(INSTALLDIR ) /mbedtls-2.6.0/usr/lib/libmbedcrypto.so.2.6.0
3088
+ $(STRIP ) $(INSTALLDIR ) /mbedtls-2.6.0/usr/lib/libmbedx509.so.2.6.0
3089
+ cd $(INSTALLDIR ) /mbedtls-2.6.0/usr/lib && ln -sf libmbedtls.so.2.6.0 libmbedtls.so.10 && \
3090
+ ln -sf libmbedtls.so.2.6.0 libmbedtls.so && ln -sf libmbedcrypto.so.2.6.0 libmbedcrypto.so.0 && \
3091
+ ln -sf libmbedcrypto.so.2.6.0 libmbedcrypto.so && ln -sf libmbedx509.so.2.6.0 libmbedx509.so.0 && \
3092
+ ln -sf libmbedx509.so.2.6.0 libmbedx509.so
3093
+
3094
+ httpdb/Makefile : mbedtls-2.6.0
3095
+ cd httpdb && cmake -DCMAKE_INSTALL_PREFIX=/usr \
3096
+ -DCMAKE_BUILD_TYPE=Release \
3097
+ -DMBEDTLS=" $( TOP) /mbedtls-2.6.0/"
3098
+
3099
+ httpdb : httpdb/Makefile
3100
+ $(MAKE ) -C $@
3101
+
3102
+ httpdb-clean :
3103
+ [ ! -f httpdb/Makefile ] || $(MAKE ) -C httpdb -f Makefile clean
3104
+ @rm -f httpdb/Makefile
3105
+
3106
+ httpdb-install : httpdb
3107
+ install -D httpdb/bin/httpdb $(INSTALLDIR ) /httpdb/usr/sbin/httpdb
3108
+ $(STRIP ) $(INSTALLDIR ) /httpdb/usr/sbin/httpdb
3014
3109
endif
3015
3110
3016
3111
ifeq ($(RTCONFIG_SMARTDNS ) ,y)
0 commit comments